Esempio n. 1
0
        /// <inheritdoc />
        public Unlocker Convert(ItemDTO value, object state)
        {
            var entity = new DyeUnlocker();

            this.Merge(entity, value, state);
            return(entity);
        }
Esempio n. 2
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;
            }
        }
Esempio n. 3
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;
            }
        }
Esempio n. 4
0
 // 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);