简体   繁体   中英

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

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?

尝试通过命令行而不是Visual Studio使用sqlmetal来生成您的类-可能是VS.NET使用了过多的内存。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM