partial void Merge(SalvageTool entity, ItemDTO dto, object state) { var details = dto.Details; if (details == null) { return; } if (details.Charges.HasValue) { entity.Charges = details.Charges.Value; } }
partial void Merge(SalvageTool entity, ItemDTO dto, object state) { var tool = dto.Tool; if (tool == null) { return; } int charges; if (int.TryParse(tool.Charges, out charges)) { entity.Charges = charges; } }