且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

linq to sql是否会自动延迟加载关联的实体?

更新时间:2022-11-03 23:24:17

是的,我相信是的.它还具有加载方式"功能/语义,使您可以使用shot弹枪方法批量加载多件东西.当您知道马上就需要相关数据以及主要实体时,这很有用,例如预先缓存呈现单个Web页面等所需的所有数据.

Yes, I believe it does. It also has a "load with" feature/semantic that allows you to batch load several things in a shotgun approach. This is useful when you know you'll need related data along with the main entity right off the bat, like to pre-cache all the data you'll need to render a single Web Page etc.