示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamQueries"/> class.
 /// </summary>
 /// <param name="unitOfWork"> The unit of work. </param>
 public TeamQueries(IUnitOfWork unitOfWork)
 {
     _unitOfWork   = (VolleyUnitOfWork)unitOfWork;
     _dalDivisions = _unitOfWork.Context.Divisions;
     _dalGroups    = _unitOfWork.Context.Groups;
     _dalTeams     = _unitOfWork.Context.Teams;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthorizationQueries"/> class
 /// </summary>
 /// <param name="unitOfWork">Instance of class which implements <see cref="IUnitOfWork"/></param>
 public AuthorizationQueries(IUnitOfWork unitOfWork)
 {
     _unitOfWork           = (VolleyUnitOfWork)unitOfWork;
     _dalUsers             = _unitOfWork.Context.Users;
     _dalRoles             = _unitOfWork.Context.Roles;
     _dalRolesToOperations = _unitOfWork.Context.RolesToOperations;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GameResultQueries"/> class.
 /// </summary>
 /// <param name="unitOfWork">Instance of class which implements <see cref="IUnitOfWork"/>.</param>
 public GameResultQueries(IUnitOfWork unitOfWork)
 {
     _unitOfWork     = (VolleyUnitOfWork)unitOfWork;
     _dalGameResults = _unitOfWork.Context.GameResults;
     _dalTournaments = _unitOfWork.Context.Tournaments;
     _dalDivisions   = _unitOfWork.Context.Divisions;
     _dalGroups      = _unitOfWork.Context.Groups;
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TournamentRepository"/> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 public TournamentRepository(IUnitOfWork unitOfWork)
 {
     _unitOfWork     = (VolleyUnitOfWork)unitOfWork;
     _dalTournaments = _unitOfWork.Context.Tournaments;
     _dalTeams       = _unitOfWork.Context.Teams;
     _dalDivisions   = _unitOfWork.Context.Divisions;
     _dalGroups      = _unitOfWork.Context.Groups;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GameRepository"/> class.
 /// </summary>
 /// <param name="unitOfWork">Instance of class which implements <see cref="IUnitOfWork"/>.</param>
 public GameRepository(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
     _dalGame    = _unitOfWork.Context.GameResults;
 }
示例#6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestRepository"/> class.
 /// </summary>
 /// <param name="unitOfWork">Instance of class which implements <see cref="IUnitOfWork"/>.</param>
 public RequestRepository(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
     _dalRequest = _unitOfWork.Context.Requests;
 }
示例#7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RolesQueries"/> class.
 /// </summary>
 /// <param name="unitOfWork"> The unit of work. </param>
 public RolesQueries(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
 }
示例#8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContributorTeamRepository"/> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 public ContributorTeamRepository(IUnitOfWork unitOfWork)
 {
     _unitOfWork  = (VolleyUnitOfWork)unitOfWork;
     _contribsSet = _unitOfWork.Context.Contributors;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FeedbackQueries"/> class.
 /// </summary>
 /// <param name="unitOfWork"> The unit of work. </param>
 public FeedbackQueries(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
 }
示例#10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamRepository"/> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 public TeamRepository(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
     _dalTeams   = _unitOfWork.Context.Teams;
 }
示例#11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserRepository"/> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 public UserRepository(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DivisionQueries"/> class.
 /// </summary>
 /// <param name="unitOfWork"> The unit of work. </param>
 public DivisionQueries(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
 }
示例#13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FeedbackRepository"/> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 public FeedbackRepository(IUnitOfWork unitOfWork)
 {
     _unitOfWork   = (VolleyUnitOfWork)unitOfWork;
     _dalFeedbacks = _unitOfWork.Context.Feedbacks;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TournamentRequestQueries"/> class.
 /// </summary>
 /// <param name="unitOfWork"> The unit of work. </param>
 public TournamentRequestQueries(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RoleRepostitory"/> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 public RoleRepostitory(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
     _dalRoles   = _unitOfWork.Context.Roles;
     _dalUsers   = _unitOfWork.Context.Users;
 }
示例#16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RequestQueries"/> class.
 /// </summary>
 /// <param name="unitOfWork"> The unit of work. </param>
 public RequestQueries(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
 }
示例#17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserQueries"/> class.
 /// </summary>
 /// <param name="unitOfWork"> The unit of work. </param>
 public UserQueries(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PlayerRepository"/> class.
 /// </summary>
 /// <param name="unitOfWork">The unit of work.</param>
 public PlayerRepository(IUnitOfWork unitOfWork)
 {
     _unitOfWork = (VolleyUnitOfWork)unitOfWork;
     _dalPlayers = _unitOfWork.Context.Players;
 }