Instead of setting the TeamID, set the Team entity to the one you just created. Delay the SubmitChanges to insert both, then it will fix up the ids when the insert is done TournamentTeam newTeam = new TournamentTeam(); TournamentTeams. InsertOnSubmit(newTeam); TournamentParticipant newSignup = new TournamentParticipant { CheckedIn = false, TournamentID = tournamentId, UserID = participant.
UserID, Team = newTeam }; TournamentParticipants. InsertOnSubmit(newSignup); SubmitChanges().
Instead of setting the TeamID, set the Team entity to the one you just created. Delay the SubmitChanges to insert both, then it will fix up the ids when the insert is done. TournamentTeam newTeam = new TournamentTeam(); TournamentTeams.
InsertOnSubmit(newTeam); TournamentParticipant newSignup = new TournamentParticipant { CheckedIn = false, TournamentID = tournamentId, UserID = participant. UserID, Team = newTeam }; TournamentParticipants. InsertOnSubmit(newSignup); SubmitChanges().
I've changed it to that and I am still seeing the INSERT without TeamID occur before the select statement that grabs the identity column. – jdelator Aug 2 '09 at 20:05 Nevermind for some reason I had TeamID on the TournamentParticipant as an identity column. Giving you the answer though because I think this will still improve my code.
– jdelator Aug 2 '09 at 20:13.
I am new to this topic. I want something like this. I have two tables in my sqliteDatabase one is master and another is child.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.