Ejemplo n.º 1
0
        public virtual object Clone(Dictionary <object, object> clonedObjects, bool includePrimaryKey)
        {
            JobLog cloned = new JobLog();

            clonedObjects.Add(this, cloned);
            if (includePrimaryKey)
            {
                cloned._jobLogPK = this._jobLogPK;
            }
            cloned._runDt                      = this._runDt;
            cloned._status                     = this._status;
            cloned._jobName                    = this._jobName;
            cloned._log                        = this._log;
            cloned._duration                   = this._duration;
            cloned._audit_CreateDate           = this._audit_CreateDate;
            cloned._audit_CreatorUserName      = this._audit_CreatorUserName;
            cloned._audit_CreatorIP            = this._audit_CreatorIP;
            cloned._audit_LastModifyDate       = this._audit_LastModifyDate;
            cloned._audit_LastModifierUserName = this._audit_LastModifierUserName;
            cloned._audit_LastModifierIP       = this._audit_LastModifierIP;


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

            checked_objects.Add(this);

            JobLog casted_other = other as JobLog;

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

            if (!Typing.IsEquals(this.JobLogPK, casted_other.JobLogPK))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.RunDt, casted_other.RunDt))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Status, casted_other.Status))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.JobName, casted_other.JobName))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Log, casted_other.Log))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Duration, casted_other.Duration))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Audit_CreateDate, casted_other.Audit_CreateDate))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Audit_CreatorUserName, casted_other.Audit_CreatorUserName))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Audit_CreatorIP, casted_other.Audit_CreatorIP))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Audit_LastModifyDate, casted_other.Audit_LastModifyDate))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Audit_LastModifierUserName, casted_other.Audit_LastModifierUserName))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Audit_LastModifierIP, casted_other.Audit_LastModifierIP))
            {
                checked_objects.Remove(this);
                return(false);
            }
            checked_objects.Remove(this);

            return(true);
        }