/// <summary> /// Método desusado para agregar un nuevo objeto al EntitySet CustomerAddress. Considere la posibilidad de usar el método .Add de la propiedad ObjectSet<T> asociada. /// </summary> public void AddToCustomerAddress(CustomerAddress customerAddress) { base.AddObject("CustomerAddress", customerAddress); }
/// <summary> /// Crear un nuevo objeto CustomerAddress. /// </summary> /// <param name="customerID">Valor inicial de la propiedad CustomerID.</param> /// <param name="addressID">Valor inicial de la propiedad AddressID.</param> /// <param name="addressType">Valor inicial de la propiedad AddressType.</param> /// <param name="rowguid">Valor inicial de la propiedad rowguid.</param> /// <param name="modifiedDate">Valor inicial de la propiedad ModifiedDate.</param> public static CustomerAddress CreateCustomerAddress(global::System.Int32 customerID, global::System.Int32 addressID, global::System.String addressType, global::System.Guid rowguid, global::System.DateTime modifiedDate) { CustomerAddress customerAddress = new CustomerAddress(); customerAddress.CustomerID = customerID; customerAddress.AddressID = addressID; customerAddress.AddressType = addressType; customerAddress.rowguid = rowguid; customerAddress.ModifiedDate = modifiedDate; return customerAddress; }