Skip to content

Commit 2dd83f9

Browse files
author
Jareth Hein
committed
Implement QRecordCollection.RemoveAt for optimized processing
1 parent cb1a8a9 commit 2dd83f9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Intuit.QuickBase.Client/QRecordCollection.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ public QRecordCollection(IQApplication application, IQTable table)
3838
return base.Remove(record);
3939
}
4040

41+
public new void RemoveAt(int index)
42+
{
43+
IQRecord record = this[index];
44+
if (record.IsOnServer)
45+
{
46+
if (Table.KeyFID == -1) _recordsToRemove.Add(record.RecordId);
47+
else _recordsToRemove.Add(record[Table.KeyFID]);
48+
}
49+
base.RemoveAt(index);
50+
}
51+
4152
internal void RemoveRecords()
4253
{
4354
if (_recordsToRemove.Count > 0)

0 commit comments

Comments
 (0)