You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, how can i get the boolean value in my database column?
SqliteDatabase sqlDB = new SqliteDatabase ("config.db");
string query = "SELECT bookName ,read " + "FROM Books";
var data = sqlDB.ExecuteQuery (query);
bool boolData = data.Rows[0]["read"];
Currently it returns data.Rows[0]["read"] as object so it gives me an error:
Cannot implicitly convert type object' tobool'. An explicit conversion exists (are you missing a cast?)
The text was updated successfully, but these errors were encountered:
Hi, how can i get the boolean value in my database column?
SqliteDatabase sqlDB = new SqliteDatabase ("config.db");
string query = "SELECT bookName ,read " + "FROM Books";
var data = sqlDB.ExecuteQuery (query);
bool boolData = data.Rows[0]["read"];
Currently it returns data.Rows[0]["read"] as object so it gives me an error:
Cannot implicitly convert type
object' to
bool'. An explicit conversion exists (are you missing a cast?)The text was updated successfully, but these errors were encountered: