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
Post a Comment