Insert a list<collection> to sql lite database UWP -


i have list of user retrieved code below:

var response1 =jsonconvert.deserializeobject<list<user>>(jsonstring);  public class user { public string userid {get; set;} public string username{get; set;} public  string pwd {get; set;} } 

is there way insert response1 (type of list<user>) existing sqlite user table (uwp) other each method.

you use sqliteconnection.insertall method :

using ( var db = new sqliteconnection( new sqliteplatformwinrt(), dbpath ) )  {      db.insertall(response1); } 

i hope helpful:)


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -