Im working on visual studio 2015 with Xamarin and SQLite and i was trying to get values from my database so i could save them in variables in my code how can i do this?
My Code:
string folder = "/sdcard/Pictures/";
var db = new SQLiteConnection(System.IO.Path.Combine(folder, "GameHubDB.db"));
db.CreateCommand("SELECT Id FROM [Note] WHERE Username = '" + UsernameTxt.Text + "' AND Password='" + PasswordTxt.Text + "'", Id);
db.Commit();
You can use a nuget package to create the SQLite connection. Refer this link https://developer.xamarin.com/recipes/android/data/databases/sqlite/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.