partial void Merge(CraftingRecipeUnlocker entity, ItemDTO dto, object state)
        {
            var details = dto.Details;
            if (details == null)
            {
                return;
            }

            if (details.RecipeId.HasValue)
            {
                entity.RecipeId = details.RecipeId.Value;
            }
        }
        partial void Merge(CraftingRecipeUnlocker entity, ItemDTO dto, object state)
        {
            var consumableDto = dto.Consumable;
            if (consumableDto == null)
            {
                return;
            }

            int recipeId;
            if (int.TryParse(consumableDto.RecipeId, out recipeId))
            {
                entity.RecipeId = recipeId;
            }
        }