是否有用于SQLite的.NET / C#包装器?
我有点想在C#.Net中使用SQLite,但是似乎找不到合适的库。有一个吗?正式的吗?除了包装器,还有其他使用SQLite的方法吗?
解决方案
从https://system.data.sqlite.org:
System.Data.SQLite is an ADO.NET adapter for SQLite. System.Data.SQLite was started by Robert Simpson. Robert still has commit privileges on this repository but is no longer an active contributor. Development and maintenance work is now mostly performed by the SQLite Development Team. The SQLite team is committed to supporting System.Data.SQLite long-term.
" System.Data.SQLite是原始SQLite数据库引擎和完整的ADO.NET 2.0提供程序,都集成到一个混合模式程序集中。它是原始sqlite3.dll的完整替代品(我们甚至可以将其重命名为sqlite3.dll)。与普通的混合程序集不同,它对.NET运行时没有链接程序依赖性,因此可以独立于.NET进行分发。"
它甚至支持Mono。
这是我可以找到的:
- 托管SQLite
- SQLite.NET包装器
- System.Data.SQLite
资料来源:
- sqlite.org
- 其他海报
我肯定会选择System.Data.SQLite(如前所述:http://sqlite.phxsoftware.com/)
它与ADO.NET(System.Data。*)保持一致,并被编译为单个DLL。没有sqlite3.dll,因为SQLite的C代码嵌入在System.Data.SQLite.dll中。一点托管的C ++魔术。
现在还有这个选项:http://code.google.com/p/csharp-sqlite/ SQLite到C#的完整端口。
Monotouch的1.2版包括对System.Data的支持。我们可以在此处找到更多详细信息:
http://monotouch.net/Documentation/System.Data
但基本上,它允许我们将常用的ADO .NET模式与sqlite一起使用。
http://www.devart.com/dotconnect/sqlite/
dotConnect for SQLite是SQLite的增强数据提供程序,它基于ADO.NET技术提供了开发基于SQLite的数据库应用程序的完整解决方案。作为Devart数据库应用程序开发框架的一部分,dotConnect for SQLite提供了与SQLite数据库的高性能本机连接以及许多创新的开发工具和技术。
dotConnect for SQLite引入了用于设计应用程序体系结构的新方法,提高了生产率,并利用了数据库应用程序的实现。
我使用标准版本,效果很好:)