/// <summary> /// Deprecated Method for adding a new object to the SubAreas EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSubAreas(SubArea subArea) { base.AddObject("SubAreas", subArea); }
/// <summary> /// Create a new SubArea object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="areaID">Initial value of the AreaID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="delivaryPrice">Initial value of the DelivaryPrice property.</param> public static SubArea CreateSubArea(global::System.Int32 id, global::System.Int32 areaID, global::System.String name, global::System.String delivaryPrice) { SubArea subArea = new SubArea(); subArea.id = id; subArea.AreaID = areaID; subArea.Name = name; subArea.DelivaryPrice = delivaryPrice; return subArea; }