1

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();

1 Answer 1

1

You can use a nuget package to create the SQLite connection. Refer this link https://developer.xamarin.com/recipes/android/data/databases/sqlite/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.