Skip to content

Commit 3dd4086

Browse files
author
ducksoop
committed
feat: 🎸 able to add multiple fields to command
You can now provide a dictionary to update many fields at once ✅ Closes: #12
1 parent 59cf91c commit 3dd4086

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎QuickbaseNet/Helpers/QuickbaseCommandBuilder.cs‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,15 @@ public RecordBuilder AddField<T>(int fieldId, T value)
125125
return this;
126126
}
127127

128+
public RecordBuilder AddFields(params (int fieldId, dynamic value)[] fields)
129+
{
130+
foreach (var field in fields)
131+
{
132+
AddField(field.fieldId, field.value);
133+
}
134+
return this;
135+
}
136+
128137
/// <summary>
129138
/// Builds the record.
130139
/// </summary>

0 commit comments

Comments
 (0)