public IUnitOfWork Create()
        {
            var ctx = new DeploymentCockpitEntities();

            ctx.Configuration.LazyLoadingEnabled = false;
            return(new UnitOfWork(ctx));
        }
示例#2
0
        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);
 }