开发者

What does DataContext.GetTable<TEntry> do?

开发者 https://www.devze.com 2022-12-28 17:57 出处:网络
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

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

0

精彩评论

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

关注公众号