Exemplo n.º 1
0
 /// <summary>
 /// Public Constructor,initializes privately declared local variables.
 /// </summary>
 /// <param name="context"></param>
 public GenericRepository(CarSalesEntities context)
 {
     this.Context = context;
     this.DbSet   = context.Set <TEntity>();
 }
Exemplo n.º 2
0
 public BaseClass()
 {
     _entities = new CarSalesEntities();
 }
Exemplo n.º 3
0
 public UnitOfWork()
 {
     _context = new CarSalesEntities();
 }