예제 #1
0
 /// <summary>
 /// Create a new Race object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="raceTypeId">Initial value of the RaceTypeId property.</param>
 public static Race CreateRace(global::System.Int32 id, global::System.String name, global::System.DateTime date, global::System.Int32 raceTypeId)
 {
     Race race = new Race();
     race.Id = id;
     race.Name = name;
     race.Date = date;
     race.RaceTypeId = raceTypeId;
     return race;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Races EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRaces(Race race)
 {
     base.AddObject("Races", race);
 }