コード例 #1
0
        internal void CompleteMatch(MyMatch match)
        {
            match.MatchCompleted();
            MyMatch matchtoupdate = context.Matches.Where(m => m.MatchId == match.MatchId).FirstOrDefault();

            context.Entry(matchtoupdate).CurrentValues.SetValues(match);
        }
コード例 #2
0
        internal void CompleteSummoner(MySummoner summoner)
        {
            summoner.SummonerCompleted();
            MySummoner sumtoupdate = context.Summoners.Where(s => s.SummonerId == summoner.SummonerId).FirstOrDefault();

            context.Entry(sumtoupdate).CurrentValues.SetValues(summoner);
        }