开发者

Does using Linq-TO-SQL on a WCF service automatically create static classes filled with table data?

开发者 https://www.devze.com 2023-03-29 04:39 出处:网络
If i generate Linq-To-SQL or ORM classes with entities and relationships on a wcf service, does this automatically generate a static version of the entire database with the relatiohsipships on the ser

If i generate Linq-To-SQL or ORM classes with entities and relationships on a wcf service, does this automatically generate a static version of the entire database with the relatiohsipships on the server side so I am not having to deal directly with the SQL database but in-memory c开发者_StackOverflowollections in the service?


The short answer is no. LINQ-To-SQL will only hydrate those objects that are fetched, not the entire database (unless you somehow queried the entire database in the scope of a single DataContext).

0

精彩评论

暂无评论...
验证码 换一张
取 消