/// <summary> /// Deprecated Method for adding a new object to the Dinners EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDinners(Dinner dinner) { base.AddObject("Dinners", dinner); }
/// <summary> /// Create a new Dinner object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="dateOfDinner">Initial value of the DateOfDinner property.</param> /// <param name="logitiude">Initial value of the Logitiude property.</param> /// <param name="latitude">Initial value of the Latitude property.</param> public static Dinner CreateDinner(global::System.Int32 id, global::System.String title, global::System.DateTime dateOfDinner, global::System.Decimal logitiude, global::System.Decimal latitude) { Dinner dinner = new Dinner(); dinner.id = id; dinner.Title = title; dinner.DateOfDinner = dateOfDinner; dinner.Logitiude = logitiude; dinner.Latitude = latitude; return dinner; }