CommunityToolkit.Aspire.Microsoft.Data.Sqlite 9.2.1

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Microsoft.Data.Sqlite --version 9.2.1                
NuGet\Install-Package CommunityToolkit.Aspire.Microsoft.Data.Sqlite -Version 9.2.1                
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.2.1" />                
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.2.1                
#r "nuget: CommunityToolkit.Aspire.Microsoft.Data.Sqlite, 9.2.1"                
#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.2.1

// Install CommunityToolkit.Aspire.Microsoft.Data.Sqlite as a Cake Tool
#tool nuget:?package=CommunityToolkit.Aspire.Microsoft.Data.Sqlite&version=9.2.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

Feedback & contributing

https://github.com/CommunityToolkit/Aspire

Product 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.

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.2.2-beta.228 3 3/11/2025
9.2.2-beta.227 24 3/11/2025
9.2.2-beta.226 32 3/11/2025
9.2.2-beta.225 31 3/11/2025
9.2.2-beta.224 36 3/11/2025
9.2.2-beta.223 45 3/10/2025
9.2.2-beta.222 41 3/10/2025
9.2.2-beta.220 50 3/9/2025
9.2.2-beta.218 38 3/9/2025
9.2.2-beta.217 153 3/7/2025
9.2.2-beta.216 152 3/7/2025
9.2.2-beta.215 150 3/7/2025
9.2.2-beta.214 151 3/5/2025
9.2.2-beta.213 149 3/5/2025
9.2.2-beta.212 150 3/5/2025
9.2.2-beta.211 156 3/4/2025
9.2.2-beta.210 152 3/4/2025
9.2.2-beta.208 54 3/3/2025
9.2.1 97 3/3/2025
9.2.1-beta.207 53 3/2/2025
9.2.1-beta.206 45 3/1/2025
9.2.1-beta.205 51 2/27/2025
9.2.1-beta.204 42 2/26/2025
9.2.1-beta.203 46 2/26/2025
9.2.0 89 2/26/2025
9.2.0-beta.202 42 2/26/2025
9.2.0-beta.201 48 2/26/2025
9.2.0-beta.199 48 2/26/2025
9.2.0-beta.198 47 2/26/2025
9.1.1-beta.197 63 2/25/2025
9.1.1-beta.196 45 2/25/2025
9.1.1-beta.195 47 2/25/2025
9.1.1-beta.194 41 2/25/2025
9.1.1-beta.193 51 2/25/2025
9.1.1-beta.192 48 2/24/2025
9.1.1-beta.191 55 2/24/2025
9.1.1-beta.190 46 2/19/2025
9.1.1-beta.189 46 2/19/2025
9.1.1-beta.188 51 2/19/2025
9.1.1-beta.187 56 2/19/2025
9.1.1-beta.183 61 2/18/2025
9.1.1-beta.182 62 2/18/2025
9.1.1-beta.181 62 2/18/2025
9.1.1-beta.180 53 2/17/2025
9.1.1-beta.178 59 2/17/2025
9.1.1-beta.177 58 2/12/2025
9.1.1-beta.176 59 2/11/2025
9.1.1-beta.175 55 2/11/2025
9.1.1-beta.173 56 2/10/2025
9.1.1-beta.169 46 2/6/2025
9.1.1-beta.168 45 2/5/2025
9.1.1-beta.166 49 2/5/2025
9.1.1-beta.165 46 2/5/2025
9.1.1-beta.164 61 2/3/2025
9.1.1-beta.162 50 2/3/2025
9.1.1-beta.155 42 1/30/2025
9.1.1-beta.154 45 1/30/2025
9.1.1-beta.153 44 1/30/2025
9.1.1-beta.152 41 1/29/2025
9.1.1-beta.150 49 1/29/2025
9.1.1-beta.148 47 1/26/2025
9.1.1-beta.147 45 1/26/2025
9.1.1-beta.146 56 1/23/2025
9.1.1-beta.145 47 1/22/2025
9.1.1-beta.144 41 1/22/2025
9.1.1-beta.142 46 1/22/2025
9.1.1-beta.140 47 1/22/2025
9.1.1-beta.139 49 1/21/2025
9.1.1-beta.138 45 1/20/2025
9.1.1-beta.137 43 1/17/2025
9.1.1-beta.136 39 1/15/2025
9.1.1-beta.135 21 1/15/2025