/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="PhoneDTO"/> converted from <see cref="Phone"/>.</param> static partial void OnDTO(this Phone entity, PhoneDTO dto) { if (entity != null && entity.TypeCode != null) { dto.TypeCode = TypeCodeAssembler.ToDTO(entity.TypeCode); } }
/// <summary> /// Invoked when <see cref="ToDTO"/> operation is about to return. /// </summary> /// <param name="dto"><see cref="AddressDTO"/> converted from <see cref="Address"/>.</param> static partial void OnDTO(this Address entity, AddressDTO dto) { if (entity != null && entity.TypeCode != null) { dto.TypeCode = TypeCodeAssembler.ToDTO(entity.TypeCode); dto.Country = CountryAssembler.ToDTO(entity.Country); } }