Entity Creation in Linq-to-SQL Classes
How many entitie开发者_StackOverflow中文版s 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
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.
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?
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.
精彩评论