コード例 #1
0
 public UnitOfWork(SilentManagerContext context)
 {
     this._context             = context;
     this.UserRepo             = new UserRepository(_context);
     this.EventRepo            = new EventRepository(_context);
     this.PersonalSettingsRepo = new PersonalSettingsRepository(_context);
     this.InviteRepo           = new InviteRepository(_context);
     this.LocationRepo         = new LocationRepository(_context);
     this.tokenRepo            = new TokenRepository(_context);
     this.inviteStateRepo      = new InviteStateRepository(_context);
     this.eventHasCategories   = new EventHasCategoriesRepository(_context);
     this.categoriesRepo       = new CategoryRepository(_context);
 }
コード例 #2
0
 public InviteRepository(SilentManagerContext dbContext)
     : base(dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #3
0
 public CategoryRepository(SilentManagerContext dbContext) : base(dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #4
0
 public PersonalSettingsRepository(SilentManagerContext dbContext)
     : base(dbContext)
 {
     this.dbContext = dbContext;
 }
コード例 #5
0
 public UserRepository(SilentManagerContext dbContext)
     : base(dbContext)
 {
 }
コード例 #6
0
 public TokenRepository(SilentManagerContext dbContext)
     : base(dbContext)
 {
 }
コード例 #7
0
 public EventHasCategoriesRepository(SilentManagerContext dbContext) : base(dbContext)
 {
     this.dbContext = dbContext;
 }