コード例 #1
0
 public AlbumModalService()
 {
     _context      = new SoulfulContext();
     _singerRepo   = new SoulfulRepository <Singer>(_context);
     _albumRepo    = new SoulfulRepository <Album>(_context);
     _languageRepo = new SoulfulRepository <Language>(_context);
 }
コード例 #2
0
        public SoulfulRepository(SoulfulContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException();
            }

            _context = context;
        }
コード例 #3
0
 public AccountService()
 {
     _context    = new SoulfulContext();
     _repository = new SoulfulRepository <GiveBacks>(_context);
 }
コード例 #4
0
 public EventService()
 {
     _context    = new SoulfulContext();
     _eventRepo  = new SoulfulRepository <Event>(_context);
     _singerRepo = new SoulfulRepository <Singer>(_context);
 }
コード例 #5
0
 public ProductService()
 {
     _context    = new SoulfulContext();
     _singerRepo = new SoulfulRepository <Singer>(_context);
     _albumRepo  = new SoulfulRepository <Album>(_context);
 }
コード例 #6
0
ファイル: OrderService.cs プロジェクト: z990272/SoulFul
 public OrderService()
 {
     _context   = new SoulfulContext();
     _orderRepo = new SoulfulRepository <Order>(_context);
     _odRepo    = new SoulfulRepository <OrderDetail>(_context);
 }