示例#1
0
 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);
     }
 }
示例#2
0
        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()));
        }
示例#3
0
 public string GetDate()
 {
     return(ActualDate.ToString("MM/dd/yyyy"));
 }
示例#4
0
 protected bool Equals(CurrencyDataEntry other)
 {
     return(Id == other.Id && Value.Equals(other.Value) && ActualDate.Equals(other.ActualDate) &&
            Equals(DbCurrencyCodeEntry, other.DbCurrencyCodeEntry));
 }