What does DataContext.GetTable<TEntry> do?
Consider I have a DataContext 开发者_开发百科db
, and there is an Entity class User
. So when System.Data.Linq.Table<User> table = db.GetTable<User>();
is called for the first time, does it pull the data from the database immediately, does it use deferred execution, or were the data already loaded from database when db
was initialized?
Until you enumerate the collection no data is loaded
精彩评论