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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -