Exemplo n.º 1
0
 public UnitOfWork(DbContext context)
 {
     Context        = context;
     products       = new ProductRepo(context);
     users          = new UserRepo(context);
     propertyvalues = new PropertyValueRepo(context);
     properties     = new PropertyRepo(context);
     manufactures   = new ManufactureRepo(context);
 }
Exemplo n.º 2
0
        public UnitOfWork(DbContext context)
        {
            this.Context  = context;
            consumer      = new ConsumerRepo(this.Context);
            product       = new ProductRepo(this.Context);
            category      = new CategoryRepo(this.Context);
            subCategory   = new SubCategoryRepo(this.Context);
            manufacture   = new ManufactureRepo(this.Context);
            propertyvalue = new PropertyValueRepo(this.Context);
            property      = new PropertyRepo(this.Context);
            specFilter    = new SpecFilterRepo(this.Context);
            typeFilter    = new TypeFilterRepo(this.Context);

            //add attrs
        }