/// <summary> /// Create a new Location object. /// </summary> /// <param name="locationID">Initial value of the LocationID property.</param> /// <param name="locationName">Initial value of the LocationName property.</param> /// <param name="locationAddress">Initial value of the LocationAddress property.</param> /// <param name="locationCity">Initial value of the LocationCity property.</param> /// <param name="locationState">Initial value of the LocationState property.</param> /// <param name="locationZip">Initial value of the LocationZip property.</param> /// <param name="locationPhone">Initial value of the LocationPhone property.</param> public static Location CreateLocation(global::System.Int32 locationID, global::System.String locationName, global::System.String locationAddress, global::System.String locationCity, global::System.String locationState, global::System.String locationZip, global::System.String locationPhone) { Location location = new Location(); location.LocationID = locationID; location.LocationName = locationName; location.LocationAddress = locationAddress; location.LocationCity = locationCity; location.LocationState = locationState; location.LocationZip = locationZip; location.LocationPhone = locationPhone; return location; }
/// <summary> /// Deprecated Method for adding a new object to the Locations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToLocations(Location location) { base.AddObject("Locations", location); }