[英]LazyLoading applicable to context that generated through ADO.NET entity model
I just want to know LazyLoading
applicable to context that generated through ADO.NET entity model's ? 我只想知道
LazyLoading
适用于通过ADO.NET实体模型的?生成的上下文。
this ProjectEntities
generated through ADO.NET entity model 通过ADO.NET实体模型生成的此
ProjectEntities
to enable LazyLoading
I added like this 启用
LazyLoading
我这样添加
public ProjectEntities(): base("name=ProjectEntities")
{
this.Configuration.LazyLoadingEnabled = true;
}
but seems like not working 但似乎不起作用
实体中引用其他实体的所有属性都应该是虚拟的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.