我试图在Windows运行时组件使用SQLite。 但是,我得到一些219错误,当我加入的NuGet sqlite的网包。 想不出弄明白任何地方。 任何类似的问题?
我终于用一个商店应用类库使用SQLite,并呼吁从我的Windows运行时组件在它的方法。
方法商店应用
public async Task<IEnumerable<TaskGroup> > GetTaskGroup()
{
return await conn.QueryAsync<TaskGroup>("select * from TaskGroup");
}
在Win运行时组件的方法调用
public IAsyncOperation<IEnumerable<TaskGroup>> GetAllTaskGroup()
{
return m_objDAL.GetTaskGroup().AsAsyncOperation();
}
我得到以下错误
Error 1 Method 'Tasker.BAL.TaskManager.GetAllTaskGroup()' has a parameter of type 'Windows.Foundation.IAsyncOperation<System.Collections.Generic.IEnumerable<SQLLite.Models.TaskGroup>>' in its signature. Although this generic type is not a valid Windows Runtime type, the type or its generic parameters implement interfaces that are valid Windows Runtime types. Consider changing the type 'SQLLite.Models.TaskGroup' in the method signature. It is not a valid Windows Runtime parameter type.
使得商店应用方法为私有解决它按这个博客http://rarcher.azurewebsites.net/Post/PostContent/23
但我不能UE这一点,因为它会给我访问问题,因为它是私有的。
任何SOLN?