/// <summary> /// Refreshes the data for this record instance. /// </summary> /// <remarks> /// If any field values have been changed but Modify has not been called, they will be lost upon refresh. /// If any of the primary key fields were modified, this will result in a different record being fetched when Refresh is called. /// This is because Refresh really just re-fetches the data record based on the current primary key values. /// </remarks> public void Refresh() { RehydrateRecord(); CallbackEnumerator cbEnum = new CallbackEnumerator(this); _Record.EnumFieldValues(cbEnum); _Fields = cbEnum.FieldValues; }
/// <summary> /// Receives the next record. /// </summary> /// <param name="record">The record.</param> /// <returns>An <see cref="System.Int32"/> representing an error code</returns> public int NextRecord(INSRec record) { // Do not pass in the record variable to our CSide.Record constructor because its lifetime expires at the end of this method // Instead lazy loading will reconstitute a longer lifetime version later as is needed Record rec = new Record(null, _Manager as Table); CallbackEnumerator cbEnum = new CallbackEnumerator(rec); record.EnumFieldValues(cbEnum); rec._Fields = cbEnum.FieldValues; _Records.Add(rec); return(0); }
public int NextRecord(INSRec record) { int a = 1; String b; record.GetFieldValue(a, out b); Debug.WriteLine("NextRecord=" + b); CallBack callbackTab = new CallBack(); Debug.Indent(); record.EnumFieldValues(callbackTab); Debug.Unindent(); lastRec = record; return(1); }