Exemple #1
0
        public virtual object Clone(Dictionary <object, object> clonedObjects, bool includePrimaryKey)
        {
            ClosingPrice cloned = new ClosingPrice();

            clonedObjects.Add(this, cloned);
            if (includePrimaryKey)
            {
                cloned._closingPricePK = this._closingPricePK;
            }
            cloned._dateTime   = this._dateTime;
            cloned._insCode    = this._insCode;
            cloned._pdrCotVal  = this._pdrCotVal;
            cloned._pClosing   = this._pClosing;
            cloned._first      = this._first;
            cloned._ystrdy     = this._ystrdy;
            cloned._max        = this._max;
            cloned._min        = this._min;
            cloned._tradeCount = this._tradeCount;
            cloned._vol        = this._vol;
            cloned._val        = this._val;
            cloned._bVal       = this._bVal;


            return(cloned);
        }
Exemple #2
0
        public virtual bool Equals(object other, List <object> checked_objects)
        {
            if (checked_objects.Contains(this))
            {
                return(true);
            }

            checked_objects.Add(this);

            ClosingPrice casted_other = other as ClosingPrice;

            if (casted_other == null)
            {
                checked_objects.Remove(this);
                return(false);
            }

            if (!Typing.IsEquals(this.ClosingPricePK, casted_other.ClosingPricePK))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.DateTime, casted_other.DateTime))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.InsCode, casted_other.InsCode))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.PdrCotVal, casted_other.PdrCotVal))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.PClosing, casted_other.PClosing))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.First, casted_other.First))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Ystrdy, casted_other.Ystrdy))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Max, casted_other.Max))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Min, casted_other.Min))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.TradeCount, casted_other.TradeCount))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Vol, casted_other.Vol))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Val, casted_other.Val))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.BVal, casted_other.BVal))
            {
                checked_objects.Remove(this);
                return(false);
            }
            checked_objects.Remove(this);

            return(true);
        }