Exemple #1
0
        public static ProductsSystemData GetInstance(IProductsSystemDbContext context)
        {
            if (dataInstance == null)
            {
                dataInstance = new ProductsSystemData(context);
            }

            return(dataInstance);
        }
 public ProductsRepository(IProductsSystemDbContext context)
     : base(context)
 {
 }
 public Repository(IProductsSystemDbContext context)
 {
     this.Context = context;
     this.DbSet   = this.Context.Set <T>();
 }
Exemple #4
0
 protected ProductsSystemData(IProductsSystemDbContext context)
 {
     this.context      = context;
     this.repositories = new Dictionary <Type, object>();
 }