Muthu
Muthu

Reputation: 87

Entity Creation in Linq-to-SQL Classes

How many entities we can create in Linq-to-SQL Classes(Per .dbml file)?

I have 1,500 tables in my database.

While executing application in Linq-to-SQL Classes, it's showing

Not Enough storage space

Upvotes: 1

Views: 148

Answers (3)

Mustafa Shabib
Mustafa Shabib

Reputation: 740

Try using sqlmetal via the command line instead of Visual Studio to generate your classes - it could be VS.NET is using too much memory.

Upvotes: 0

Adam Rackis
Adam Rackis

Reputation: 83358

There's no limit on how many entities can be created from your database. You might just be running out of memory in Visual Studio.

Edit

Based on Anton's comment, try restarting Visual Studio. Failing that, you may have to break up your data model into multiple dbmls with your various tables distributed throughout.

Upvotes: 1

Sergi Papaseit
Sergi Papaseit

Reputation: 16174

Looks like there's, quite literally, not enough space in de database to store any more entities. Is your HD full? Did you set a maximum size for your database file?

Upvotes: 0

Related Questions