简体   繁体   English

Sqlite.Net PCL和Sqlite-Net扩展

[英]Sqlite.Net PCL And Sqlite-Net Extensions

I'm trying to use this lib: https://github.com/oysteinkrog/SQLite.Net-PCL so I can keep all my repository stuff in a PCL. 我正在尝试使用以下库: https : //github.com/oysteinkrog/SQLite.Net-PCL,以便将所有存储库内容保存在PCL中。

And https://bitbucket.org/twincoders/sqlite-net-extensions/overview Because is way better to manage the relationship between entities with it. https://bitbucket.org/twincoders/sqlite-net-extensions/overview因为这是一种更好的方法来管理实体之间的关系。

I have tried to build them using PCL profile 4.5 - 78, but no success so far. 我尝试使用PCL配置文件4.5-78来构建它们,但到目前为止没有成功。 Especially in the Sqlite-Net Extension that use some heavy reflection that won't work/compile on PCL. 尤其是在Sqlite-Net扩展中,这种使用大量反射的内容在PCL上无法正常工作/编译。

Does anyone made this two work together? 有人让这两个一起工作吗?

Last SQLite-Net Extensions version works with SQLite.Net-PCL out-of-the-box and the PCL library project is now compiled against SQLite.Net-PCL NuGet Package . 最新的SQLite-Net扩展版本可立即使用SQLite.Net-PCL,并且PCL库项目现在已根据SQLite.Net-PCL NuGet Package进行编译。 Default profile is Profile158 (.Net 4.5, SL5, WP8, Win8, Xam.Droid & Xam.Touch). 默认配置文件是Profile158(.Net 4.5,SL5,WP8,Win8,Xam.Droid和Xam.Touch)。

EDIT: The library is now available as a NuGet package . 编辑:该库现在可以作为NuGet包使用 So it should be simpler to include it. 因此,包含它应该更简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM