我正在从具有 bool 类型的列的数据库表中读取数据。我正在使用 Windows Phone 8 的 Sqlite 库。
这是我正在使用的代码
quotes = new ObservableCollection<Quotes>(
            await connection.QueryAsync<Quotes>("Select * from Quotes where quote_type ='" + category + "'"));
这是我的报价课
public class Quotes
{
    public int _id { get; set; }
    public string quote { get; set; }
    public string quote_type { get; set; }
    public string author { get; set; }
    public bool IsFav { get; set; }
    public bool IsUserDefined { get; set; }
}
我得到了所有的值,但“IsFav”和“IsUserDefined”变量始终包含值“False”,即使表中有一些数据的值为真。表中的变量和列名也匹配。