public static bool IsEqualTo(this GameScores thisThread, GameScores thatThread)
 {
     return
         (thisThread.UserId == thatThread.UserId
          &&
          thisThread.GameTitle == thatThread.GameTitle
          &&
          thisThread.TopScore == thatThread.TopScore
          &&
          thisThread.TopScoreDateTime == thatThread.TopScoreDateTime
          &&
          thisThread.Wins == thatThread.Wins
          &&
          thisThread.Losses == thatThread.Losses
         );
 }
        public void DataContext_EntitiesLoadedBySecondaryIndexCanBeDeleted()
        {
            var testScore = new GameScores
            {
                UserId    = "Unknown",
                GameTitle = "DataContext_EntitiesLoadedBySecondaryIndexCanBeDeleted",
            };

            if (!this.OneIndexThreadTable.Any(scores => scores.GameTitle == testScore.GameTitle))
            {
                this.OneIndexThreadTable.InsertOnSubmit(testScore);
                this.OneIndexContext.SubmitChanges();
            }

            var entity = this.OneIndexThreadTable.First(scores => scores.GameTitle == testScore.GameTitle);

            this.OneIndexThreadTable.RemoveOnSubmit(entity);
            this.OneIndexContext.SubmitChanges();
        }
 public static bool IsEqualTo(this GameScores thisThread, GameScores thatThread)
 {
     return
         thisThread.UserId == thatThread.UserId
         &&
         thisThread.GameTitle == thatThread.GameTitle
         &&
         thisThread.TopScore == thatThread.TopScore
         &&
         thisThread.TopScoreDateTime == thatThread.TopScoreDateTime
         &&
         thisThread.Wins == thatThread.Wins
         &&
         thisThread.Losses == thatThread.Losses
     ;
 }