protected BaseRepository(IOntextDbContext context) { _context = context as OntextDbContext; }
public OntextRoleStore(IOntextDbContext context) : base(context.DbContext) { }
public OntextUserStore(IOntextDbContext context) : base(context.DbContext) { }
/// <summary> /// Creates entity repository /// </summary> /// <param name="dbContext">Db Context</param> public EntityRepository(IOntextDbContext dbContext) { Context = dbContext.DbContext; DbSet = Context.Set <T>(); }
/// <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; }