.Patch<T>()
Applies JSON Patch changes to all records, or a specific record, in the database.
Method Syntax
await db.Patch<T>(resource, data)
This function patches document / record data with the specified JSON Patch data.
Arguments
| Arguments | Description |
|---|
thing required | The table name or the specific RecordId to patch. |
data optional | The JSON Patch data with which to patch the records. |
cancellationToken optional | The cancellationToken enables graceful cancellation of asynchronous operations. |
Example usage
var result = await db.Patch(("person", "tobie"), patches);
var result = await db.Patch("person", patches);