Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        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;
            }
        }