public virtual object Clone(Dictionary <object, object> clonedObjects, bool includePrimaryKey) { HardLog cloned = new HardLog(); clonedObjects.Add(this, cloned); if (includePrimaryKey) { cloned._id = this._id; } cloned._entryDt = this._entryDt; cloned._level = this._level; cloned._kind = this._kind; cloned._userName = this._userName; cloned._traceKey = this._traceKey; cloned._iP = this._iP; cloned._method = this._method; cloned._type = this._type; cloned._argumentsCount = this._argumentsCount; cloned._arguments = this._arguments; cloned._elapsedMilliseconds = this._elapsedMilliseconds; cloned._result = this._result; cloned._message = this._message; cloned._exception = this._exception; return(cloned); }
public virtual bool Equals(object other, List <object> checked_objects) { if (checked_objects.Contains(this)) { return(true); } checked_objects.Add(this); HardLog casted_other = other as HardLog; if (casted_other == null) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Id, casted_other.Id)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.EntryDt, casted_other.EntryDt)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Level, casted_other.Level)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Kind, casted_other.Kind)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.UserName, casted_other.UserName)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.TraceKey, casted_other.TraceKey)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.IP, casted_other.IP)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Method, casted_other.Method)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Type, casted_other.Type)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.ArgumentsCount, casted_other.ArgumentsCount)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Arguments, casted_other.Arguments)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.ElapsedMilliseconds, casted_other.ElapsedMilliseconds)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Result, casted_other.Result)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Message, casted_other.Message)) { checked_objects.Remove(this); return(false); } if (!Typing.IsEquals(this.Exception, casted_other.Exception)) { checked_objects.Remove(this); return(false); } checked_objects.Remove(this); return(true); }