/// <summary> /// Create a new Athlete object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="firstName">Initial value of the FirstName property.</param> /// <param name="lastName">Initial value of the LastName property.</param> public static Athlete CreateAthlete(global::System.Int64 id, global::System.String firstName, global::System.String lastName) { Athlete athlete = new Athlete(); athlete.Id = id; athlete.FirstName = firstName; athlete.LastName = lastName; return athlete; }
/// <summary> /// Deprecated Method for adding a new object to the Athletes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAthletes(Athlete athlete) { base.AddObject("Athletes", athlete); }