public LocalScreenCustomFieldValueModel FetchByFieldIdAndRecordId(Int32 fieldId, String recordId) { ScreenCustomFieldValueRecord record = this.Provider.DataProvider.UserInterface.ScreenCustomFieldValue.FetchByFieldIdAndRecordId(fieldId, recordId); if (record == null) { return(null); } return(new LocalScreenCustomFieldValueModel(this.Provider, record)); }
/// <summary> /// Indicates whether the current <see cref="ScreenCustomFieldValueRecord" /> instance is equal to another <see cref="ScreenCustomFieldValueRecord" /> instance. /// </summary> /// <param name="that"> /// The <see cref="ScreenCustomFieldValueRecord" /> instance to be compared against this instance. /// </param> /// <returns> /// True if both instances are considered equal; otherwise, false. /// </returns> public Boolean Equals(ScreenCustomFieldValueRecord that) { Boolean result = true; result = result && (this.Id == that.Id); result = result && (this.CfieldId == that.CfieldId); result = result && (this.RecordId.TrimOrNullify() == that.RecordId.TrimOrNullify()); result = result && (this.Text.TrimOrNullify() == that.Text.TrimOrNullify()); result = result && (this.Number == that.Number); result = result && (this.IdValue.TrimOrNullify() == that.IdValue.TrimOrNullify()); result = result && (this.Date == that.Date); return(result); }
/// <summary> /// Creates a new <see cref="ScreenCustomFieldValueRecord" /> object instance that is a shallow-copy of the current object instance. /// </summary> /// <returns> /// The shallow-copy of the current <see cref="ScreenCustomFieldValueRecord" /> object instance. /// </returns> public ScreenCustomFieldValueRecord Clone() { ScreenCustomFieldValueRecord record = new ScreenCustomFieldValueRecord(); record.Id = this.Id; record.AddDate = this.AddDate; record.AddBy = this.AddBy; record.ModDate = this.ModDate; record.ModBy = this.ModBy; record.CfieldId = this.CfieldId; record.RecordId = this.RecordId; record.Text = this.Text; record.Number = this.Number; record.IdValue = this.IdValue; record.Date = this.Date; return(record); }