示例#1
0
 public UnitOfWork(KnightsContext context)
 {
     _context = context;
     Knights  = new KnightsRepository(_context);
     Horses   = new HorsesRepository(_context);
     Vows     = new VowsRepository(_context);
     Weapons  = new WeaponsRepository(_context);
 }
示例#2
0
 public WeaponsRepository(KnightsContext context) : base(context)
 {
 }
示例#3
0
 public VowsRepository(KnightsContext context) : base(context)
 {
 }
示例#4
0
 public HorsesRepository(KnightsContext context)
     : base(context)
 {
 }