Пример #1
0
 protected BaseRepository(IOntextDbContext context)
 {
     _context = context as OntextDbContext;
 }
Пример #2
0
 public OntextRoleStore(IOntextDbContext context)
     : base(context.DbContext)
 {
 }
Пример #3
0
 public OntextUserStore(IOntextDbContext context)
     : base(context.DbContext)
 {
 }
Пример #4
0
 /// <summary>
 /// Creates entity repository
 /// </summary>
 /// <param name="dbContext">Db Context</param>
 public EntityRepository(IOntextDbContext dbContext)
 {
     Context = dbContext.DbContext;
     DbSet   = Context.Set <T>();
 }
Пример #5
0
 /// <summary>
 /// Create UOW instance
 /// </summary>
 /// <param name="context">Application db context</param>
 public UnitOfWork(IOntextDbContext context)
 {
     enityRepositories  = new Dictionary <Type, IEntityRepository>();
     customRepositories = new Dictionary <Type, ICustomRepository>();
     Context            = context;
 }