public ProductPageService()
 {
     _context    = new UCleanerDBContext();
     _repository = new BaseRepository(_context);
 }
 public UserFavoriteService()
 {
     _context    = new UCleanerDBContext();
     _repository = new BaseRepository(_context);
 }
 public MemberCenterService()
 {
     _context    = new UCleanerDBContext();
     _repository = new BaseRepository(_context);
 }
 public CheckoutService()
 {
     _context    = new UCleanerDBContext();
     _repository = new BaseRepository(_context);
 }
 /// <summary>
 /// 實體化處理連線的物件及資料庫(包含CRUD等方法)
 /// </summary>
 public CustomerServiceService()
 {
     _context    = new UCleanerDBContext();
     _repository = new BaseRepository(_context);
 }
 public BaseRepository(UCleanerDBContext context)
 {
     _context = context ?? throw new ArgumentNullException();
 }
 public AccountService()
 {
     _context    = new UCleanerDBContext();
     _repository = new BaseRepository(_context);
 }
Exemple #8
0
 public DetailService()
 {
     _context    = new UCleanerDBContext();
     _repository = new BaseRepository(_context);
 }