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; }
public RoleRepository(IRoleContext context) { _context = context; }
public RoleRepository(IRoleContext context) { _context = context ?? throw new NullReferenceException(nameof(context)); }
public RoleRepository(IRoleContext context) { this._Context = context; }