/// <summary> /// Indicates whether the current <see cref="SmsTypeRecord" /> instance is equal to another <see cref="SmsTypeRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="SmsTypeRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(SmsTypeRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.Name.TrimOrNullify() == that.Name.TrimOrNullify()); result = result && (this.View.TrimOrNullify() == that.View.TrimOrNullify()); result = result && (this.StoredProc.TrimOrNullify() == that.StoredProc.TrimOrNullify()); return(result); }
/// <summary> /// Creates a new <see cref="SmsTypeRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="SmsTypeRecord" /> object instance. /// </returns> public SmsTypeRecord Clone() { SmsTypeRecord record = new SmsTypeRecord(); record.Id = this.Id; record.AddDate = this.AddDate; record.AddBy = this.AddBy; record.ModDate = this.ModDate; record.ModBy = this.ModBy; record.Name = this.Name; record.View = this.View; record.StoredProc = this.StoredProc; return(record); }