public void ConfirmRegisterStatus(TeamEntity team, int tournamentId)
        {
            using var context = new B3DTContext();
            var data = context.TournamentTeams.Where(I => I.TournamentId == tournamentId && I.TeamId == team.Id).FirstOrDefault();

            data.IsConfirmed = true;
            context.SaveChanges();
        }
コード例 #2
0
 public void Update(EntityTable table)
 {
     using var context = new B3DTContext();
     context.Set <EntityTable>().Update(table);
     context.SaveChanges();
 }