/// <summary> /// Deprecated Method for adding a new object to the Weeks EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToWeeks(Week week) { base.AddObject("Weeks", week); }
/// <summary> /// Create a new Week object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="tYear">Initial value of the TYear property.</param> /// <param name="tWeekName">Initial value of the TWeekName property.</param> /// <param name="tCreated">Initial value of the TCreated property.</param> public static Week CreateWeek(global::System.Int32 id, global::System.Int32 tYear, global::System.String tWeekName, global::System.String tCreated) { Week week = new Week(); week.ID = id; week.TYear = tYear; week.TWeekName = tWeekName; week.TCreated = tCreated; return week; }