예제 #1
0
 public GenericRepository(BookingSectorContext myDataBase)
 {
     this.myDataBase = myDataBase;
     table           = myDataBase.Set <T>();
 }
 public UserRepository(BookingSectorContext context)
 {
     this.context = context;
     userSet      = context.Set <User>();
 }
 public UnitOfWork(BookingSectorContext context, ILoggerManager logger)
 {
     this.context = context;
     this.logger  = logger;
 }
 public SettingRepository(BookingSectorContext context)
 {
     this.context = context;
     settingSet   = context.Set <Setting>();
 }
 public TokenRepository(BookingSectorContext context)
 {
     this.context = context;
     tokenSet     = context.Set <Token>();
 }
 public TournamentRepository(BookingSectorContext context)
 {
     this.context  = context;
     tournamentSet = context.Set <Tournament>();
 }
 public BookingSectorRepository(BookingSectorContext context)
 {
     this.context     = context;
     bookingSectorSet = context.Set <BookingSector>();
 }