partial void Merge(Trinket entity, ItemDTO dto, object state) { var trinket = dto.Trinket; if (trinket == null) { return; } var infusionSlots = trinket.InfusionSlots; if (infusionSlots != null) { entity.InfusionSlots = this.infusionSlotCollectionConverter.Convert(infusionSlots, trinket); } var infixUpgrade = trinket.InfixUpgrade; if (infixUpgrade != null) { entity.InfixUpgrade = this.infixUpgradeConverter.Convert(infixUpgrade, trinket); } int suffixItemId; if (int.TryParse(trinket.SuffixItemId, out suffixItemId)) { entity.SuffixItemId = suffixItemId; } int secondarySuffixItemId; if (int.TryParse(trinket.SecondarySuffixItemId, out secondarySuffixItemId)) { entity.SecondarySuffixItemId = secondarySuffixItemId; } }
partial void Merge(Trinket entity, ItemDTO dto, object state) { var details = dto.Details; if (details == null) { return; } var infusionSlots = details.InfusionSlots; if (infusionSlots != null) { entity.InfusionSlots = this.infusionSlotCollectionConverter.Convert(infusionSlots, dto); } var infixUpgrade = details.InfixUpgrade; if (infixUpgrade != null) { entity.InfixUpgrade = this.infixUpgradeConverter.Convert(infixUpgrade, dto); } details.SuffixItemId = details.SuffixItemId; int secondarySuffixItemId; if (int.TryParse(details.SecondarySuffixItemId, out secondarySuffixItemId)) { entity.SecondarySuffixItemId = secondarySuffixItemId; } }