Ejemplo n.º 1
0
 public UnitOfWork(DbContext context)
 {
     this.context = context;
     Risks        = new RiskRepository(context);
     Customers    = new CustomerRepository(context);
     Mortgages    = new MortgageRepository(context);
     MortgageCustomerAssignments = new MortgageCustomerAssignmentRepository(context);
 }
 public void Initialize()
 {
     _databaseContext = new MortgageData.MortgageDataContext();
     _objRepo         = new MortgageRepository();
 }
Ejemplo n.º 3
0
 public MortgageController(IConfiguration configuration)
 {
     repo = new MortgageRepository(configuration);
 }