public static View_客戶對應聯絡人及銀行帳戶數量Repository GetView_客戶對應聯絡人及銀行帳戶數量Repository(IUnitOfWork unitOfWork) { var repository = new View_客戶對應聯絡人及銀行帳戶數量Repository(); repository.UnitOfWork = unitOfWork; return(repository); }
public 客戶資料Controller() { customerRepo = RepositoryHelper.Get客戶資料Repository(); dbViewRepo = RepositoryHelper.GetView_客戶對應聯絡人及銀行帳戶數量Repository(customerRepo.UnitOfWork); contantRepo = RepositoryHelper.Get客戶聯絡人Repository(customerRepo.UnitOfWork); bankRepo = RepositoryHelper.Get客戶銀行資訊Repository(customerRepo.UnitOfWork); }