public UserService(IteaDbContext dbContext)
 {
     Repository = new BaseRepository <User>(dbContext);
 }
Exemple #2
0
 public BaseRepository(IteaDbContext dbContext)
 {
     this.dbContext = dbContext;
     dbSet          = this.dbContext.Set <T>();
 }
 public CarriageSService(IteaDbContext dbContext)
 {
     Repository = new BaseRepository <Carriage>(dbContext);
 }
 public BuyersService(IteaDbContext dbContext)
 {
     Repository = new BaseRepository <Buyers>(dbContext);
 }
 public GenericAsyncRepository(IteaDbContext dbContext)
 {
     this.dbContext = dbContext;
     dbSet          = this.dbContext.Set <T>();
 }
Exemple #6
0
 public ConsumerService(IteaDbContext dbContext)
 {
     Repository = new BaseRepository <Consumers>(dbContext);
 }
Exemple #7
0
 public TrainService(IteaDbContext dbContext)
 {
     Repository = new BaseRepository <Train>(dbContext);
 }
Exemple #8
0
 public StationService(IteaDbContext dbContext)
 {
     Repository = new BaseRepository <Station>(dbContext);
 }
Exemple #9
0
 public TicketService(IteaDbContext dbContext)
 {
     Repository = new BaseRepository <Ticket>(dbContext);
 }