Hi,
I see the document shows an example of how to insert data using SQLite.net-pcl, but how do I update data?
The insert example seems simple, but how do I update?
db.Insert( new TableAccount { fieldKey = "TEST", fieldValue = "hello world!" } );
Nevermind, I figured it out. You basically need to set the column as primary key and it will automatically know which row to update. Pretty slick!
db.Update( new TableAccount { fieldKey = "TEST", fieldValue = "hello world!" } );
Also, take a look at https://github.com/jamesmontemagno/MeetupManager as I have a great example in there of structuring it with SQLite-net PCL.
Answers
Nevermind, I figured it out. You basically need to set the column as primary key and it will automatically know which row to update. Pretty slick!
Also, take a look at https://github.com/jamesmontemagno/MeetupManager as I have a great example in there of structuring it with SQLite-net PCL.