/// <summary> /// Creates a new instance of <see cref="GenericRepository{TEntity}"/> /// </summary> /// <param name="context"></param> public GenericRepository(StockExchangeModel context) { Context = context; DbSet = context.Set <TEntity>(); }
/// <summary> /// Creates a new instance of <see cref="GenericRepository{TEntity}"/> /// </summary> public GenericRepository() { Context = new StockExchangeModel(); DbSet = Context.Set <TEntity>(); }