Condividi tramite


IMobileServiceLocalStore.UpsertAsync Method

Definition

Updates or inserts data in local table.

public System.Threading.Tasks.Task UpsertAsync (string tableName, System.Collections.Generic.IEnumerable<Newtonsoft.Json.Linq.JObject> items, bool ignoreMissingColumns);
abstract member UpsertAsync : string * seq<Newtonsoft.Json.Linq.JObject> * bool -> System.Threading.Tasks.Task
Public Function UpsertAsync (tableName As String, items As IEnumerable(Of JObject), ignoreMissingColumns As Boolean) As Task

Parameters

tableName
String

Name of the local table.

items
IEnumerable<Newtonsoft.Json.Linq.JObject>

A list of items to be inserted.

ignoreMissingColumns
Boolean

true if the extra properties on item can be ignored; false otherwise.

Returns

A task that completes when item has been upserted in local table.

Applies to