You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have overloads of Create/Update/Replace which can serialize a given object, similarly to how we have RetrieveRecord which deserializes the response to T. It would help to avoid duplication and mistakes which seem to come with using Fields
a brief example of how I'd probably use it:
publicclassMyAirtableRecord{[JsonPropertyName("fldrabcdefg")]publicstring?Description{get;set;}[JsonPropertyName("fldrhijklmn")]publicAirtableAttachment?File{get;set;}[JsonPropertyName("fldr1234567")]publicint?Rating{get;set;}}publicclassCustomAirtableClient{privatereadonlyAirtableBase_base;privatereadonlystring_tableId;// some initialization...publicasyncTask<MyAirtableRecord>Get(stringrecordId){varrecord=awaitthis._base.RetrieveRecord<MyAirtableRecord>(_tableId,recordId,returnFieldsByFieldId:true);returnrecord.Record;}publicasyncTask<string>Create(MyAirtableRecorddata){varrecord=awaitthis._base.CreateRecord(_tableId,data);returnrecord.Id;}publicasyncTaskUpdate(stringrecordId,MyAirtableRecorddata){awaitthis._base.UpdateRecord(_tableId,recordId,data);}}
At least one issue comes to mind that would need to be dealt with:
When updating, how do we handle null values? You probably want to ignore them in most cases, but you may sometimes want to actually clear a given column in airtable - in that case it might be easiest to say that you need to fallback to using a Fields.
The text was updated successfully, but these errors were encountered:
It would be useful to have overloads of Create/Update/Replace which can serialize a given object, similarly to how we have RetrieveRecord which deserializes the response to
T
. It would help to avoid duplication and mistakes which seem to come with usingFields
a brief example of how I'd probably use it:
At least one issue comes to mind that would need to be dealt with:
When updating, how do we handle
null
values? You probably want to ignore them in most cases, but you may sometimes want to actually clear a given column in airtable - in that case it might be easiest to say that you need to fallback to using aFields
.The text was updated successfully, but these errors were encountered: