예제 #1
0
 public TeamService(ITeamContext teamContext, IPlayerContext playerContext, IRoleContext roleContext, IDivisionContext divisionContext)
 {
     _teamContext     = teamContext;
     _playerContext   = playerContext;
     _roleContext     = roleContext;
     _divisionContext = divisionContext;
 }
        static public void FillORoleContextAsYouLike(IRoleContext context)
        {
            var orole = (ORoleContext)context;

            orole.Name           = defaultName;
            orole.Role           = defaultRole;
            orole.NeedLogin      = false;
            orole.NeedPermission = false;
        }
예제 #3
0
 public RoleRepository(IRoleContext context)
 {
     _context = context;
 }
예제 #4
0
 public RoleRepository(IRoleContext context)
 {
     _context = context ?? throw new NullReferenceException(nameof(context));
 }
예제 #5
0
 public RoleRepository(IRoleContext context)
 {
     this._Context = context;
 }