Here is my code using sqllite
public ObservableCollection<DbManager> Break;
//public List<DbManager> Break1;
string path;
SQLite.Net.SQLiteConnection conn;
public GraphPage()
{
this.InitializeComponent();
//Break1 = Breakfast.GetBreak();
path = Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "db.sqlite");
conn = new SQLite.Net.SQLiteConnection(new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), path);
var query1 = conn.Table<DbManager>().Where(c => c.Reading == "Breakfast");
string result1 = String.Empty;
foreach (var item1 in query1)
{
Break.Add(new DbManager { Glucose = item1.Glucose, Date = item1.Date });
}
Break = new ObservableCollection<DbManager>();
DataContext = this;
}
And the error in App.g.i.cs is:
!DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
UnhandledException += (sender, e) =>
{
if (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();
};