public override int GetHashCode() { unchecked { var hashCode = Id; hashCode = (hashCode * 397) ^ Value.GetHashCode(); hashCode = (hashCode * 397) ^ ActualDate.GetHashCode(); hashCode = (hashCode * 397) ^ (DbCurrencyCodeEntry != null ? DbCurrencyCodeEntry.GetHashCode() : 0); return(hashCode); } }
public override string GetStepParameters() { var parameters = new List <string>(); parameters.Add(Name != null ? Name.ToStepValue() : "$"); parameters.Add(DataOrigin.ToStepValue()); parameters.Add(UserDefinedDataOrigin != null ? UserDefinedDataOrigin.ToStepValue() : "$"); parameters.Add(ActualDate != null ? ActualDate.ToStepValue() : "$"); parameters.Add(EarlyDate != null ? EarlyDate.ToStepValue() : "$"); parameters.Add(LateDate != null ? LateDate.ToStepValue() : "$"); parameters.Add(ScheduleDate != null ? ScheduleDate.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }
public string GetDate() { return(ActualDate.ToString("MM/dd/yyyy")); }
protected bool Equals(CurrencyDataEntry other) { return(Id == other.Id && Value.Equals(other.Value) && ActualDate.Equals(other.ActualDate) && Equals(DbCurrencyCodeEntry, other.DbCurrencyCodeEntry)); }