예제 #1
0
        public void AddOwnedGame(OwnedGame ownedGame)
        {
            if (OwnedGames == null)
            {
                OwnedGames = new HashSet <OwnedGame>();
            }

            OwnedGames.Add(ownedGame);
            ownedGame.AppUser = this;
        }
예제 #2
0
        public void AddOwnedGame(OwnedGame ownedGame)
        {
            if (OwnedGames == null)
            {
                OwnedGames = new HashSet<OwnedGame>();
            }

            OwnedGames.Add(ownedGame);
            ownedGame.AppUser = this;
        }
예제 #3
0
        public void UpdateOwnedGame(OwnedGame ownedGame)
        {
            OwnedGame targetOwnedGame = context.OwnedGames.Find(ownedGame.OwnedGameID);

            if (targetOwnedGame != null)
            {
                targetOwnedGame.MinutesPlayed = ownedGame.MinutesPlayed;
            }
        }
예제 #4
0
 public void InsertOwnedGame(OwnedGame ownedGame)
 {
     context.OwnedGames.Add(ownedGame);
 }