简体   繁体   中英

ADO.NET SQLite pcl library for Xamarin

Is there available ADO.NET pcl library for sqlite? It can be also simple (not pcl) library. I am looking especially support for Windows Runtime (Windows 8.1 metro app). As I know there is mono implementation of ado.net for Android and IOS. But I cannot find any implementation for Windows Runtime.

The libraries like sqlite-net-pcl are not applicable, because I need to create dynamic set of data.

Since ADO.NET is fairly old, it's more of a platform implementation rather than a PCL-available class. However you could write your own wrapper in which Windows platforms would call into Microsoft.Data.Sqlite or System.Data and Mono/Xamarin platforms would call into Mono.Data.Sqlite .

Seeing that Microsoft.Data.Sqlite is now more portable(available in netstandard1.3 ), you should be able to just use Microsoft.Data.Sqlite in your projects as long as you target netstandard1.3+ as a means to get a DbConnection in true ADO.NET fashion.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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