/// <summary>
 /// Create a new Address object.
 /// </summary>
 /// <param name="details">Initial value of the Details property.</param>
 public static Address CreateAddress(global::System.String details)
 {
     Address address = new Address();
     address.Details = details;
     return address;
 }
 /// <summary>
 /// Create a new Depot object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="address">Initial value of the Address property.</param>
 public static Depot CreateDepot(global::System.Int32 id, global::System.String name, Address address)
 {
     Depot depot = new Depot();
     depot.Id = id;
     depot.Name = name;
     depot.Address = StructuralObject.VerifyComplexObjectIsNotNull(address, "Address");
     return depot;
 }
 partial void OnAddressChanging(Address value);
 /// <summary>
 /// Create a new Delivery object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 /// <param name="address">Initial value of the Address property.</param>
 /// <param name="deliveryTypeId">Initial value of the DeliveryTypeId property.</param>
 public static Delivery CreateDelivery(global::System.Int32 id, global::System.DateTime date, global::System.String status, Address address, global::System.Int32 deliveryTypeId)
 {
     Delivery delivery = new Delivery();
     delivery.Id = id;
     delivery.Date = date;
     delivery.Status = status;
     delivery.Address = StructuralObject.VerifyComplexObjectIsNotNull(address, "Address");
     delivery.DeliveryTypeId = deliveryTypeId;
     return delivery;
 }