Exemple #1
0
 public void Create(TEntity item)
 {
     using (AuctionContext db = new AuctionContext())
     {
         BDSet.Add(item);
     }
 }
Exemple #2
0
 public UnitOfWork(AuctionContext bD, ContextRepository <Lot> lots, ContextRepository <Role> roles, ContextRepository <User> users)
 {
     BD    = bD;
     Lots  = lots;
     Roles = roles;
     Users = users;
 }
Exemple #3
0
 public ContextRepository(AuctionContext context)
 {
     Context = context;
     BDSet   = context.Set <TEntity>();
 }