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; } }