LinqConnect for Metro - WinJS support
Posted: Fri 11 Oct 2013 10:23
Hi,
I have been evaluating LinqConnect for Metro as a local storage solution for our Windows Store App. Unfortunately for us the SQLite provider only appears to support xaml apps wheras our application in a hybrid WinJS / c# WinRT component app.
When constructing a DataContext from a WinRT component the following exception is thrown
System.Exception occurred
HResult=-2147418113
Message=Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Source=Windows.UI.Xaml
StackTrace:
at Windows.UI.Xaml.Application.get_Current()
at Devart.Data.SQLite.Linq.Provider.SQLiteDataProvider.Initialize(Object connection)
at Devart.Data.Linq.DataProvider.7axdkwt3gfx52xqzykge2d4jpayt4hd5 (IDataServices , Object )
at Devart.Data.Linq.DataContext. (Object , MappingSource , Type )
at Devart.Data.Linq.DataContext..ctor(String connectionString, MappingSource mapping)
at ClassLibrary1.OfflineDataContext..ctor(String persisterConfigData) in c:\Users\xxx\Documents\Visual Studio 2012\Projects\App20\ClassLibrary1\OfflineDataContext.cs:line 29
The property Windows.UI.Xaml.Application.Current is not supported in WinJS apps.
Is there any workaround (e.g. an alternative SQLite provider) or do you have plans to support WinJS in the future?
Thanks,
David
I have been evaluating LinqConnect for Metro as a local storage solution for our Windows Store App. Unfortunately for us the SQLite provider only appears to support xaml apps wheras our application in a hybrid WinJS / c# WinRT component app.
When constructing a DataContext from a WinRT component the following exception is thrown
System.Exception occurred
HResult=-2147418113
Message=Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Source=Windows.UI.Xaml
StackTrace:
at Windows.UI.Xaml.Application.get_Current()
at Devart.Data.SQLite.Linq.Provider.SQLiteDataProvider.Initialize(Object connection)
at Devart.Data.Linq.DataProvider.7axdkwt3gfx52xqzykge2d4jpayt4hd5 (IDataServices , Object )
at Devart.Data.Linq.DataContext. (Object , MappingSource , Type )
at Devart.Data.Linq.DataContext..ctor(String connectionString, MappingSource mapping)
at ClassLibrary1.OfflineDataContext..ctor(String persisterConfigData) in c:\Users\xxx\Documents\Visual Studio 2012\Projects\App20\ClassLibrary1\OfflineDataContext.cs:line 29
The property Windows.UI.Xaml.Application.Current is not supported in WinJS apps.
Is there any workaround (e.g. an alternative SQLite provider) or do you have plans to support WinJS in the future?
Thanks,
David