How to automatically INSERT or UPDATE with SQLite.Net?

284 Views Asked by At

I'm using the SQLite.Net Async API. Is there a way to have it automatically INSERT or UPDATE depending on the entity's primary key which is defined as [PrimaryKey, AutoIncrement]?

I can see from the intellisense that there are InsertAsync() and UpdateAsync() but no information about how they work in case the primary key property is already set in the entity.

0

There are 0 best solutions below