Beispiel #1
0
 public UnitOfWork(MahalluDBContext context)
 {
     //Database.SetInitializer<MahalluDBContext>(null);  //for db upgrade
     mahalluDBContext     = context;
     Residences           = new ResidenceRepository(mahalluDBContext);
     ResidenceMembers     = new Repository <ResidenceMember>(mahalluDBContext);
     Areas                = new Repository <Area>(mahalluDBContext);
     IncomeCategories     = new Repository <IncomeCategory>(mahalluDBContext);
     ExpenseCategories    = new Repository <ExpenseCategory>(mahalluDBContext);
     Contributions        = new Repository <Contribution>(mahalluDBContext);
     ContributionDetails  = new Repository <ContributionDetail>(mahalluDBContext);
     Expenses             = new Repository <Expense>(mahalluDBContext);
     ExpenseDetails       = new Repository <ExpenseDetails>(mahalluDBContext);
     MarriageCertificates = new Repository <MarriageCertificate>(mahalluDBContext);
     CashSources          = new Repository <CashSource>(mahalluDBContext);
 }
 public ResidenceRepository(MahalluDBContext mahalluDBContext) : base(mahalluDBContext)
 {
     MahalluDBContext = mahalluDBContext;
 }