/// <inheritdoc /> public Unlocker Convert(ItemDTO value, object state) { var entity = new DyeUnlocker(); this.Merge(entity, value, state); return(entity); }
partial void Merge(DyeUnlocker entity, ItemDTO dto, object state) { var details = dto.Details; if (details == null) { return; } if (details.ColorId.HasValue) { entity.ColorId = details.ColorId.Value; } }
partial void Merge(DyeUnlocker entity, ItemDTO dto, object state) { var consumable = dto.Consumable; if (consumable == null) { return; } int colorId; if (int.TryParse(consumable.ColorId, out colorId)) { entity.ColorId = colorId; } }
// Implement this method in a buddy class to set properties that are specific to 'DyeUnlocker' (if any) partial void Merge(DyeUnlocker entity, ItemDTO dto, object state);