CommunityToolkit.Aspire.Microsoft.Data.Sqlite
9.1.1-beta.135
Prefix Reserved
This is a prerelease version of CommunityToolkit.Aspire.Microsoft.Data.Sqlite.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Microsoft.Data.Sqlite --version 9.1.1-beta.135
NuGet\Install-Package CommunityToolkit.Aspire.Microsoft.Data.Sqlite -Version 9.1.1-beta.135
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommunityToolkit.Aspire.Microsoft.Data.Sqlite" Version="9.1.1-beta.135" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommunityToolkit.Aspire.Microsoft.Data.Sqlite --version 9.1.1-beta.135
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CommunityToolkit.Aspire.Microsoft.Data.Sqlite, 9.1.1-beta.135"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CommunityToolkit.Aspire.Microsoft.Data.Sqlite as a Cake Addin #addin nuget:?package=CommunityToolkit.Aspire.Microsoft.Data.Sqlite&version=9.1.1-beta.135&prerelease // Install CommunityToolkit.Aspire.Microsoft.Data.Sqlite as a Cake Tool #tool nuget:?package=CommunityToolkit.Aspire.Microsoft.Data.Sqlite&version=9.1.1-beta.135&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- AspNetCore.HealthChecks.Sqlite (>= 9.0.0)
- Microsoft.Data.Sqlite (>= 9.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
-
net9.0
- AspNetCore.HealthChecks.Sqlite (>= 9.0.0)
- Microsoft.Data.Sqlite (>= 9.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.1.1-beta.169 | 29 | 2/6/2025 |
9.1.1-beta.168 | 28 | 2/5/2025 |
9.1.1-beta.166 | 35 | 2/5/2025 |
9.1.1-beta.165 | 32 | 2/5/2025 |
9.1.1-beta.164 | 39 | 2/3/2025 |
9.1.1-beta.162 | 31 | 2/3/2025 |
9.1.1-beta.155 | 28 | 1/30/2025 |
9.1.1-beta.154 | 31 | 1/30/2025 |
9.1.1-beta.153 | 28 | 1/30/2025 |
9.1.1-beta.152 | 8 | 1/29/2025 |
9.1.1-beta.150 | 28 | 1/29/2025 |
9.1.1-beta.148 | 27 | 1/26/2025 |
9.1.1-beta.147 | 29 | 1/26/2025 |
9.1.1-beta.146 | 33 | 1/23/2025 |
9.1.1-beta.145 | 34 | 1/22/2025 |
9.1.1-beta.144 | 29 | 1/22/2025 |
9.1.1-beta.142 | 31 | 1/22/2025 |
9.1.1-beta.140 | 35 | 1/22/2025 |
9.1.1-beta.139 | 33 | 1/21/2025 |
9.1.1-beta.138 | 32 | 1/20/2025 |
9.1.1-beta.137 | 35 | 1/17/2025 |
9.1.1-beta.136 | 34 | 1/15/2025 |
9.1.1-beta.135 | 11 | 1/15/2025 |