/// <summary> /// Indicates whether the current <see cref="CommunicationsXrefRecord" /> instance is equal to another <see cref="CommunicationsXrefRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="CommunicationsXrefRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(CommunicationsXrefRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.TableName.TrimOrNullify() == that.TableName.TrimOrNullify()); result = result && (this.RecordId.TrimOrNullify() == that.RecordId.TrimOrNullify()); result = result && (this.CommId == that.CommId); return(result); }
/// <summary> /// Creates a new <see cref="CommunicationsXrefRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="CommunicationsXrefRecord" /> object instance. /// </returns> public CommunicationsXrefRecord Clone() { CommunicationsXrefRecord record = new CommunicationsXrefRecord(); record.Id = this.Id; record.AddDate = this.AddDate; record.AddBy = this.AddBy; record.ModDate = this.ModDate; record.ModBy = this.ModBy; record.TableName = this.TableName; record.RecordId = this.RecordId; record.CommId = this.CommId; return(record); }
/// <summary> /// Initialises a new <see cref="LocalCommunicationsRoleModel" /> instance. /// </summary> /// <param name="provider"> /// The business provider to which the business model is bound. /// </param> /// <param name="record"> /// The data record which is encapsulated by the business model. /// </param> internal LocalCommunicationsRoleModel(LocalProvider provider, CommunicationsXrefRecord record) : base(provider, record) { }