public static EntityAddress ReadFromDTO(EntityAddress target, EntityAddressDTO source)
 {
     AddressTX.ReadFromDTO(target.Address, source.Address);
     AddressTypeTX.ReadFromDTO(target.AddressType, source.AddressType);
     EntityTX.ReadFromDTO(target.Entity, source.Entity);
     target.AddressId     = source.AddressId;
     target.EntityId      = source.EntityId;
     target.AddressTypeId = source.AddressTypeId;
     target.ModifiedDate  = source.ModifiedDate;
     return(target);
 }
 public static EntityAddressDTO WriteToDTO(EntityAddress source)
 {
     return(new EntityAddressDTO
     {
         Address = AddressTX.WriteToDTO(source.Address),
         AddressType = AddressTypeTX.WriteToDTO(source.AddressType),
         Entity = EntityTX.WriteToDTO(source.Entity),
         AddressId = source.AddressId,
         EntityId = source.EntityId,
         AddressTypeId = source.AddressTypeId,
         ModifiedDate = source.ModifiedDate,
     });
 }