/// <summary> /// Create a new ServiceArea object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="aPIKeyId">Initial value of the APIKeyId property.</param> /// <param name="geographicLocationId">Initial value of the GeographicLocationId property.</param> /// <param name="granularityId">Initial value of the GranularityId property.</param> public static ServiceArea CreateServiceArea(global::System.Int64 id, global::System.Int64 aPIKeyId, global::System.Int64 geographicLocationId, global::System.Int64 granularityId) { ServiceArea serviceArea = new ServiceArea(); serviceArea.Id = id; serviceArea.APIKeyId = aPIKeyId; serviceArea.GeographicLocationId = geographicLocationId; serviceArea.GranularityId = granularityId; return(serviceArea); }
/// <summary> /// Deprecated Method for adding a new object to the ServiceAreas EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToServiceAreas(ServiceArea serviceArea) { base.AddObject("ServiceAreas", serviceArea); }