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>(); }
protected ProductsSystemData(IProductsSystemDbContext context) { this.context = context; this.repositories = new Dictionary <Type, object>(); }