コード例 #1
0
 public UnitOfWork()
 {
     context = new ProdCustContext();
     //Do not enabled proxied entities, else serialization fails
     context.Configuration.ProxyCreationEnabled = false;
     //Load Navigation properties explicitly
     context.Configuration.LazyLoadingEnabled = false;
 }
コード例 #2
0
 public UnitOfWork(ProdCustContext context)
 {
     this.context = context;
 }