示例#1
0
 public UnitOfWork(GoingOutContext context)
 {
     _context = context;
 }
示例#2
0
 public GenericRepository(GoingOutContext context)
 {
     _context = context;
     dbSet    = context.Set <TEntity>();
 }
示例#3
0
 public GroupsController(GoingOutContext context)
 {
     _groupServices = new GroupsService(context);
 }
示例#4
0
 public GroupsService(GoingOutContext context)
 {
     _unitOfWork = new UnitOfWork(context);
 }
示例#5
0
 public UsersController(GoingOutContext context)
 {
     _userServices  = new UsersService(context);
     _groupServices = new GroupsService(context);
 }