public Repository(AuctionContext context) { _context = context; _entities = context.Set <TEntity>(); }
public GenericRepository(AuctionContext context) { database = context; dbSet = context.Set <TEntity>(); }
public GenericRepository(AuctionContext context) { this.context = context; this.dbSet = context.Set <TEntity>(); }
public TradingLotRepository(AuctionContext context) { Database = context; dbSet = context.Set <TradingLot>(); }
public UserProfileRepository(AuctionContext context) { Database = context; dbSet = context.Set <UserProfile>(); }
public CategoryRepository(AuctionContext context) { Database = context; dbSet = context.Set <Category>(); }
public void Create(T item) { db.Set <T>().Add(item); db.SaveChanges(); }
public Repository(AuctionContext context) { this.context = context; dbSet = context.Set <Entity>(); }