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); WorkerFiles = new FileRepo(context); }
public EventTypeRepo(PraiseDbContext context) : base(context) { //_DbContext = context; }
public SermonCategoryRepository(PraiseDbContext context) : base(context) { }
public Repository(PraiseDbContext context) { dbContext = context; }
public EventRepo(PraiseDbContext context) : base(context) { }
public SermonRepo(PraiseDbContext context) : base(context) { // _DbContext = context; }
public UserRepo(PraiseDbContext context) : base(context) { _DbContext = context; }
public ContactRepo(PraiseDbContext context) : base(context) { }
public MemberRepo(PraiseDbContext context) : base(context) { }
public GalleryRepo(PraiseDbContext context) : base(context) { }
public NewsRepo(PraiseDbContext context) : base(context) { }
public DepartmentRepo(PraiseDbContext context) : base(context) { }
public WorkerRepo(PraiseDbContext context) : base(context) { }