private bool FilterAddresses(Address entity)
 {
     return (entity.EntityId == this.Id);
 }
 private void AttachAddresses(Address entity)
 {
     entity.Owner = this;
 }
 private void DetachAddresses(Address entity)
 {
     entity.Owner = null;
 }
 /// <summary>
 /// Create a new Address object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="entityId">Initial value of the EntityId property.</param>
 /// <param name="address1">Initial value of the Address1 property.</param>
 /// <param name="address2">Initial value of the Address2 property.</param>
 public static Address CreateAddress(global::System.Int32 id, global::System.String createdBy, global::System.DateTime createdDate, global::System.Int32 entityId, global::System.String address1, global::System.String address2)
 {
     Address address = new Address();
     address.Id = id;
     address.CreatedBy = createdBy;
     address.CreatedDate = createdDate;
     address.EntityId = entityId;
     address.Address1 = address1;
     address.Address2 = address2;
     return address;
 }