public CharUnitOfWork(CharContext dbContext, IGameAccountRepository gameAccounts, ICharacterRepository characters, ICharacterAppearanceRepository characterAppearances) : base(dbContext) { GameAccounts = gameAccounts; Characters = characters; CharacterAppearances = characterAppearances; }
//public ITeamRepository Teams { get; set; } public UnitOfWork(ApplicationDbContext _db, IFollowRelationsRepository followsRepo, IVideoGamesRepository gamesRepo, IGameAccountRepository gameaccountsRepo, IGameAccountStatsRepository gameAccountStatsRepo, IUserGameRelationsRepository userGamesRelationRepo, IGGUserRepository usersRepo) { db = _db; FollowRelations = followsRepo; Games = gamesRepo; GameAccounts = gameaccountsRepo; GameAccountStats = gameAccountStatsRepo; //MessageChats = new MessageChatRepository(context); //MessageChatUsers = new MessageChatUserRepository(context); //Notifications = new NotificationsRepository(context); UsersGamesRelations = userGamesRelationRepo; GGUsers = usersRepo; //UserNotifications = new UserNotificationRepository(context); //Teams = new TeamRepository(context); }
public GameAccountsController(IGameAccountRepository gameAccountRepository) { this.gameAccountRepository = gameAccountRepository; }
public GameAccountLogic(IGameAccountContext context) { AccountRepository = new GameAccountRepository(context); }
public FriendsAccountsController(IFriendRepository friendRepository, IGameAccountRepository gameAccountRepository) { this.gameAccountRepository = gameAccountRepository; this.friendRepository = friendRepository; }
public SearchController(IUserProfileRepository userProfileRepository, IGameAccountRepository gameAccountRepository) { this.userProfileRepository = userProfileRepository; this.gameAccountRepository = gameAccountRepository; }