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; }
public UnitOfWork(ProdCustContext context) { this.context = context; }