Comment out and remove unused code.

This commit is contained in:
Kevin Matsubara 2025-04-05 23:05:42 +02:00
parent 29aebcea18
commit 5a2a82b413

View File

@ -4,18 +4,16 @@ using Microsoft.EntityFrameworkCore;
using var context = new DeadBallZoneLeagueDbContext(); using var context = new DeadBallZoneLeagueDbContext();
//PrintTeams(); // var teamOne = await context.Teams.FirstAsync(t => t.TeamId == 1);
// var teamTwo = await context.Teams.FirstAsync(t => t.TeamId == 2);
var teamOne = await context.Teams.FirstAsync(t => t.TeamId == 1); // var teamThree = await context.Teams.SingleAsync(t => t.TeamId == 3);
var teamTwo = await context.Teams.FirstAsync(t => t.TeamId == 2); // var teamFour = await context.Teams.SingleOrDefaultAsync(t => t.TeamId == 3);
var teamThree = await context.Teams.SingleAsync(t => t.TeamId == 3);
var teamFour = await context.Teams.SingleOrDefaultAsync(t => t.TeamId == 3);
// There is no entry for coaches yet, this function will provide a null to coach. // There is no entry for coaches yet, this function will provide a null to coach.
// Rather than raise: "System.InvalidOperationException: Sequence contains no elements." // Rather than raise: "System.InvalidOperationException: Sequence contains no elements."
var coach = await context.Coaches.FirstOrDefaultAsync(); // var firstCoach = await context.Coaches.FirstOrDefaultAsync();
await ListVSIQueryableCall();
async Task ListVSIQueryableCall() async Task ListVSIQueryableCall()
{ {