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).
精彩评论