/// <summary> /// Deprecated Method for adding a new object to the CustomerLocations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCustomerLocations(CustomerLocation customerLocation) { base.AddObject("CustomerLocations", customerLocation); }
/// <summary> /// Create a new CustomerLocation object. /// </summary> /// <param name="locationID">Initial value of the LocationID property.</param> /// <param name="customerID">Initial value of the CustomerID property.</param> /// <param name="marketID">Initial value of the MarketID property.</param> /// <param name="locationStatus">Initial value of the LocationStatus property.</param> /// <param name="isPrimary">Initial value of the IsPrimary property.</param> /// <param name="demographic">Initial value of the Demographic property.</param> /// <param name="geocodePrecision">Initial value of the GeocodePrecision property.</param> /// <param name="locationName">Initial value of the LocationName property.</param> /// <param name="isGeocodingPending">Initial value of the IsGeocodingPending property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="lastModified">Initial value of the LastModified property.</param> /// <param name="version">Initial value of the Version property.</param> public static CustomerLocation CreateCustomerLocation(global::System.Int32 locationID, global::System.Int32 customerID, global::System.Int32 marketID, global::System.Int32 locationStatus, global::System.Boolean isPrimary, global::System.Int32 demographic, global::System.Int32 geocodePrecision, global::System.String locationName, global::System.Boolean isGeocodingPending, global::System.DateTime created, global::System.DateTime lastModified, global::System.Byte[] version) { CustomerLocation customerLocation = new CustomerLocation(); customerLocation.LocationID = locationID; customerLocation.CustomerID = customerID; customerLocation.MarketID = marketID; customerLocation.LocationStatus = locationStatus; customerLocation.IsPrimary = isPrimary; customerLocation.Demographic = demographic; customerLocation.GeocodePrecision = geocodePrecision; customerLocation.LocationName = locationName; customerLocation.IsGeocodingPending = isGeocodingPending; customerLocation.Created = created; customerLocation.LastModified = lastModified; customerLocation.Version = version; return customerLocation; }