开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜