/// <summary> /// Create a new Address object. /// </summary> /// <param name="addressID">Initial value of the AddressID property.</param> /// <param name="addressLine1">Initial value of the AddressLine1 property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="stateProvinceID">Initial value of the StateProvinceID property.</param> /// <param name="postalCode">Initial value of the PostalCode property.</param> /// <param name="rowguid">Initial value of the rowguid property.</param> /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param> public static Address CreateAddress(global::System.Int32 addressID, global::System.String addressLine1, global::System.String city, global::System.Int32 stateProvinceID, global::System.String postalCode, global::System.Guid rowguid, global::System.DateTime modifiedDate) { Address address = new Address(); address.AddressID = addressID; address.AddressLine1 = addressLine1; address.City = city; address.StateProvinceID = stateProvinceID; address.PostalCode = postalCode; address.rowguid = rowguid; address.ModifiedDate = modifiedDate; return address; }
/// <summary> /// Deprecated Method for adding a new object to the Addresses EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAddresses(Address address) { base.AddObject("Addresses", address); }