示例#1
0
 /// <summary>
 /// Create a new Competitor object.
 /// </summary>
 /// <param name="competitorId">Initial value of the CompetitorId property.</param>
 /// <param name="tournamentId">Initial value of the TournamentId property.</param>
 /// <param name="studentId">Initial value of the StudentId property.</param>
 /// <param name="fee">Initial value of the Fee property.</param>
 /// <param name="rankId">Initial value of the RankId property.</param>
 /// <param name="age">Initial value of the Age property.</param>
 /// <param name="shareContactDetails">Initial value of the ShareContactDetails property.</param>
 /// <param name="isSignedIn">Initial value of the IsSignedIn property.</param>
 public static Competitor CreateCompetitor(global::System.Int32 competitorId, global::System.Int32 tournamentId, global::System.Int32 studentId, global::System.Decimal fee, global::System.Int32 rankId, global::System.Int32 age, global::System.Boolean shareContactDetails, global::System.Boolean isSignedIn)
 {
     Competitor competitor = new Competitor();
     competitor.CompetitorId = competitorId;
     competitor.TournamentId = tournamentId;
     competitor.StudentId = studentId;
     competitor.Fee = fee;
     competitor.RankId = rankId;
     competitor.Age = age;
     competitor.ShareContactDetails = shareContactDetails;
     competitor.IsSignedIn = isSignedIn;
     return competitor;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Competitors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCompetitors(Competitor competitor)
 {
     base.AddObject("Competitors", competitor);
 }