public IUnitOfWork Create() { var ctx = new DeploymentCockpitEntities(); ctx.Configuration.LazyLoadingEnabled = false; return(new UnitOfWork(ctx)); }
public UnitOfWork(DeploymentCockpitEntities db) { if (db == null) { throw new ArgumentNullException("db"); } _db = db; }
public IUnitOfWork Create() { var ctx = new DeploymentCockpitEntities(); ctx.Configuration.LazyLoadingEnabled = false; return new UnitOfWork(ctx); }