예제 #1
0
 public UnitOfWork(CWheelsDbContext context)
 {
     _context   = context;
     Categories = new CategoryRepository(_context);
     Accounts   = new AccountsRepository(_context);
     Vehicles   = new VehicleRepository(_context);
     Thumbnails = new ThumbnailRepository(_context);
 }
예제 #2
0
 public CategoryRepository(CWheelsDbContext context) : base(context)
 {
 }
예제 #3
0
 public ThumbnailRepository(CWheelsDbContext context) : base(context)
 {
 }
예제 #4
0
 public VehicleRepository(CWheelsDbContext context) : base(context)
 {
 }
예제 #5
0
 public AccountsRepository(CWheelsDbContext context) : base(context)
 {
 }