diff --git a/ContosoApp/App.xaml.cs b/ContosoApp/App.xaml.cs index 20d3643..3dd8bf0 100644 --- a/ContosoApp/App.xaml.cs +++ b/ContosoApp/App.xaml.cs @@ -108,8 +108,8 @@ public static void UseSqlite() File.Copy(demoDatabasePath, databasePath); } var dbOptions = new DbContextOptionsBuilder().UseSqlite( - "Data Source=" + databasePath); - Repository = new SqlContosoRepository(dbOptions); + "Data Source=" + databasePath).Options; + Repository = new SqlContosoRepository(new ContosoContext(dbOptions)); } /// @@ -119,4 +119,4 @@ public static void UseSqlite() public static void UseRest() => Repository = new RestContosoRepository("https://customers-orders-api-prod.azurewebsites.net/api/"); } -} \ No newline at end of file +}