public EfGenericRepository(ISoftUniStoreContext context) { if (context == null) { throw new ArgumentException("An instance of DbContext is required to use this repository.", "context"); } this.Context = context; this.DbSet = this.Context.Set <T>(); }
public SoftUniStoreData(ISoftUniStoreContext context) { this.context = context; }
public Repository(ISoftUniStoreContext context) { this.EntityTable = context.Set <T>(); }