public BhSplitViewModel MapToViewModel(Bh.BuyAndHoldSplitDto model) { return new BhSplitViewModel { Id = model.Id, BuyAndHoldTransactionId = model.BuyAndHoldTransactionId, SplitDate = model.SplitDate.ToShortDateString(), TickerSymbol = model.TickerSymbol.ToUpper(), SecurityId = model.SecurityId, //Type = model.Type, NumberShares = model.NumberShares, Split = model.Split, NewShares = model.NewShares, ExistingShares = model.ExistingShares, Reverse = model.Reverse, Adjust = model.Adjust, ValidFrom = model.ValidFrom.ToShortDateString(), ValidTo = model.ValidTo.ToShortDateString(), Notes = model.Notes, Url = model.Url }; }
public override int GetHashCode() { int hash = 1; if (Id.Length != 0) { hash ^= Id.GetHashCode(); } if (AgeYears != 0) { hash ^= AgeYears.GetHashCode(); } if (AgeDays != 0) { hash ^= AgeDays.GetHashCode(); } if (BirthDate != 0) { hash ^= BirthDate.GetHashCode(); } if (AdmDate != 0) { hash ^= AdmDate.GetHashCode(); } if (SepDate != 0) { hash ^= SepDate.GetHashCode(); } if (LeaveDays != 0) { hash ^= LeaveDays.GetHashCode(); } if (Sex.Length != 0) { hash ^= Sex.GetHashCode(); } if (Adm.Length != 0) { hash ^= Adm.GetHashCode(); } if (Sep.Length != 0) { hash ^= Sep.GetHashCode(); } if (Gestage != 0) { hash ^= Gestage.GetHashCode(); } if (Los != 0) { hash ^= Los.GetHashCode(); } if (Hmv != 0) { hash ^= Hmv.GetHashCode(); } if (Bh != false) { hash ^= Bh.GetHashCode(); } hash ^= diagnoses_.GetHashCode(); hash ^= procedures_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }