A small SQLite client and ORM for .NET
open sourceMITfree
SQLite-net is a minimal .NET library for storing data in SQLite databases from .NET, .NET Core, Mono and Xamarin apps. It's a thin wrapper over SQLite with a small reflection-driven ORM layer: attributes on your classes define tables, and simple methods run parameterized CRUD operations and queries that return strongly typed results, synchronously or asynchronously. It ships on NuGet as sqlite-net-pcl, or as one source file you add to a project.
Problems it solves
- store data in SQLite from my Xamarin or .NET mobile app
- map C# classes to SQLite tables without a heavy ORM
- run typed SQLite queries in a cross-platform .NET app
Features
- tables defined by attributes on your classes
- parameterized CRUD and queries with typed results
- async API
- NuGet packages for SQLitePCLRaw or platform sqlite3
- single-file source install
Limitations
- The NuGet package has to be added to both the .NET Standard library project and the platform app project.1
Alternatives
The same job
These do what SQLite-net does.
- Entity Framework 6 A tried and tested object-relational mapper for .NET
- NHibernate The object-relational mapper for .NET
- Entity Framework Core A lightweight, extensible, open source and cross-platform version of Entity Framework
- Dapper A simple, fast object mapper for .NET
- SqlSugar .NET ORM for many databases, including China's domestic ones such as Dameng and KingbaseES
- FreeSql .NET ORM with CodeFirst, DbFirst and support for many databases, including AOT builds
