/// <summary> /// Deprecated Method for adding a new object to the Sports EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSports(Sport sport) { base.AddObject("Sports", sport); }
/// <summary> /// Create a new Sport object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="sportName">Initial value of the SportName property.</param> /// <param name="sportRules">Initial value of the SportRules property.</param> public static Sport CreateSport(global::System.Int32 id, global::System.String sportName, global::System.String sportRules) { Sport sport = new Sport(); sport.ID = id; sport.SportName = sportName; sport.SportRules = sportRules; return sport; }