Exemple #1
0
 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);
 }
Exemple #2
0
 public EventTypeRepo(PraiseDbContext context) : base(context)
 {
     //_DbContext = context;
 }
Exemple #3
0
 public SermonCategoryRepository(PraiseDbContext context) : base(context)
 {
 }
Exemple #4
0
 public Repository(PraiseDbContext context)
 {
     dbContext = context;
 }
Exemple #5
0
 public EventRepo(PraiseDbContext context) : base(context)
 {
 }
Exemple #6
0
 public SermonRepo(PraiseDbContext context) : base(context)
 {
     //  _DbContext = context;
 }
Exemple #7
0
 public UserRepo(PraiseDbContext context) : base(context)
 {
     _DbContext = context;
 }
Exemple #8
0
 public ContactRepo(PraiseDbContext context) : base(context)
 {
 }
Exemple #9
0
 public MemberRepo(PraiseDbContext context) : base(context)
 {
 }
Exemple #10
0
 public GalleryRepo(PraiseDbContext context) : base(context)
 {
 }
Exemple #11
0
 public NewsRepo(PraiseDbContext context) : base(context)
 {
 }
Exemple #12
0
 public DepartmentRepo(PraiseDbContext context) : base(context)
 {
 }
Exemple #13
0
 public WorkerRepo(PraiseDbContext context) : base(context)
 {
 }