CommunityToolkit.Aspire.Microsoft.Data.Sqlite
13.1.1
Prefix Reserved
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Microsoft.Data.Sqlite --version 13.1.1
NuGet\Install-Package CommunityToolkit.Aspire.Microsoft.Data.Sqlite -Version 13.1.1
<PackageReference Include="CommunityToolkit.Aspire.Microsoft.Data.Sqlite" Version="13.1.1" />
<PackageVersion Include="CommunityToolkit.Aspire.Microsoft.Data.Sqlite" Version="13.1.1" />
<PackageReference Include="CommunityToolkit.Aspire.Microsoft.Data.Sqlite" />
paket add CommunityToolkit.Aspire.Microsoft.Data.Sqlite --version 13.1.1
#r "nuget: CommunityToolkit.Aspire.Microsoft.Data.Sqlite, 13.1.1"
#:package CommunityToolkit.Aspire.Microsoft.Data.Sqlite@13.1.1
#addin nuget:?package=CommunityToolkit.Aspire.Microsoft.Data.Sqlite&version=13.1.1
#tool nuget:?package=CommunityToolkit.Aspire.Microsoft.Data.Sqlite&version=13.1.1
CommunityToolkit.Aspire.Microsoft.Data.Sqlite library
Register a SqliteConnection in the DI container to interact with a SQLite database using ADO.NET.
Getting Started
Prerequisites
- A SQLite database
Install the package
Install the .NET Aspire EF Core Sqlite library using the following command:
dotnet add package CommunityToolkit.Aspire.Microsoft.Data.Sqlite
Example usage
In the Program.cs file of your project, call the AddSqliteConnection extension method to register the SqliteConnection implementation in the DI container. This method takes the connection name as a parameter:
builder.AddSqliteConnection("sqlite");
Then, in your service, inject SqliteConnection and use it to interact with the database:
public class MyService(SqliteConnection context)
{
// ...
}
Additional documentation
- https://learn.microsoft.com/dotnet/aspire/community-toolkit/sqlite
- https://learn.microsoft.com/dotnet/standard/data/sqlite
Feedback & contributing
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- AspNetCore.HealthChecks.Sqlite (>= 9.0.0)
- Microsoft.Data.Sqlite (>= 9.0.9)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
-
net8.0
- AspNetCore.HealthChecks.Sqlite (>= 9.0.0)
- Microsoft.Data.Sqlite (>= 9.0.9)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
-
net9.0
- AspNetCore.HealthChecks.Sqlite (>= 9.0.0)
- Microsoft.Data.Sqlite (>= 9.0.9)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.1)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on CommunityToolkit.Aspire.Microsoft.Data.Sqlite:
| Repository | Stars |
|---|---|
|
Azure-Samples/interview-coach-agent-framework
Interview coach application using Microsoft Agent Framework
|
| Version | Downloads | Last Updated |
|---|---|---|
| 13.2.1-beta.532 | 140 | 3/13/2026 |
| 13.2.1-beta.531 | 53 | 3/11/2026 |
| 13.2.1-beta.528 | 47 | 3/5/2026 |
| 13.1.2-beta.518 | 57 | 2/17/2026 |
| 13.1.2-beta.516 | 61 | 2/9/2026 |
| 13.1.2-beta.515 | 59 | 2/2/2026 |
| 13.1.2-beta.514 | 62 | 1/30/2026 |
| 13.1.2-beta.513 | 58 | 1/29/2026 |
| 13.1.2-beta.512 | 59 | 1/29/2026 |
| 13.1.2-beta.511 | 58 | 1/28/2026 |
| 13.1.2-beta.509 | 213 | 1/20/2026 |
| 13.1.2-beta.508 | 55 | 1/19/2026 |
| 13.1.2-beta.507 | 60 | 1/19/2026 |
| 13.1.2-beta.506 | 58 | 1/16/2026 |
| 13.1.2-beta.505 | 58 | 1/16/2026 |
| 13.1.2-beta.504 | 53 | 1/16/2026 |
| 13.1.1 | 1,062 | 1/16/2026 |
| 13.1.1-beta.502 | 57 | 1/16/2026 |
| 13.1.0 | 123 | 1/14/2026 |
| 13.1.0-beta.499 | 56 | 1/14/2026 |