public UnitOfWork() { context = new PraiseDbContext(); SermonCategories = new SermonCategoryRepository(context); Department = new DepartmentRepo(context); Sermons = new SermonRepo(context); Departments = new DepartmentRepo(context); Workers = new WorkerRepo(context); Events = new EventRepo(context); Members = new MemberRepo(context); Users = new UserRepo(context); Eventtype = new EventTypeRepo(context); Gallery = new GalleryRepo(context); News = new NewsRepo(context); Contact = new ContactRepo(context); }
public SermonRepo(PraiseDbContext context) : base(context) { // _DbContext = context; }
public DepartmentRepo(PraiseDbContext context) : base(context) { }
public GalleryRepo(PraiseDbContext context) : base(context) { }
public ContactRepo(PraiseDbContext context) : base(context) { }
public UserRepo(PraiseDbContext context) : base(context) { _DbContext = context; }
public EventRepo(PraiseDbContext context) : base(context) { }
public SermonCategoryRepository(PraiseDbContext context) : base(context) { //_DbContext = context; }
public Repository(PraiseDbContext context) { dbContext = context; }
public EventTypeRepo(PraiseDbContext context) : base(context) { //_DbContext = context; }
public WorkerRepo(PraiseDbContext context) : base(context) { //_DbContext = context; }
public NewsRepo(PraiseDbContext context) : base(context) { }
public MemberRepo(PraiseDbContext context) : base(context) { }