CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite 9.7.2

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.EntityFrameworkCore.Sqlite --version 9.7.2
                    
NuGet\Install-Package CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite -Version 9.7.2
                    
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.EntityFrameworkCore.Sqlite" Version="9.7.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite" Version="9.7.2" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite --version 9.7.2
                    
#r "nuget: CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite, 9.7.2"
                    
#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.
#:package CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite@9.7.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite&version=9.7.2
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite&version=9.7.2
                    
Install as a Cake Tool

CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite library

Register a DbContext in the DI container to interact with a SQLite database using Entity Framework Core.

Getting Started

Prerequisites

  • A DbContext
  • A SQLite database

Install the package

Install the .NET Aspire EF Core Sqlite library using the following command:

dotnet add package CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite

Example usage

In the Program.cs file of your project, call the AddSqliteDbContext<TDbContext> extension method to register the TDbContext implementation in the DI container. This method takes the connection name as a parameter:

builder.AddSqliteDbContext<BloggingContext>("sqlite");

Then, in your service, inject TDbContext and use it to interact with the database:

public class MyService(BloggingContext 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.  net10.0 was computed.  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. 
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
13.1.2-beta.516 0 2/9/2026
13.1.2-beta.515 49 2/2/2026
13.1.2-beta.514 42 1/30/2026
13.1.2-beta.513 42 1/29/2026
13.1.2-beta.512 43 1/29/2026
13.1.2-beta.511 47 1/28/2026
13.1.2-beta.509 46 1/20/2026
13.1.2-beta.508 49 1/19/2026
13.1.2-beta.507 46 1/19/2026
13.1.2-beta.506 48 1/16/2026
13.1.2-beta.505 49 1/16/2026
13.1.2-beta.504 40 1/16/2026
13.1.1-preview.1.260116-0117 51 1/16/2026
13.1.1-beta.502 46 1/16/2026
13.1.0-preview.1.260114-1049 50 1/14/2026
13.1.0-beta.499 44 1/14/2026
13.0.1-beta.498 44 1/14/2026
13.0.1-beta.486 48 1/12/2026
13.0.1-beta.468 734 12/3/2025
13.0.1-beta.467 633 12/3/2025
13.0.0-preview.1.251125-0314 159 11/25/2025
13.0.0-beta.462 158 11/25/2025
13.0.0-beta.456 154 11/23/2025
13.0.0-beta.454 105 11/23/2025
13.0.0-beta.453 120 11/22/2025
13.0.0-beta.450 130 11/22/2025
13.0.0-beta.448 124 11/22/2025
13.0.0-beta.444 347 11/17/2025
13.0.0-beta.443 274 11/17/2025
13.0.0-beta.440 115 11/15/2025
13.0.0-beta.439 252 11/12/2025
13.0.0-beta.438 237 11/12/2025
13.0.0-beta.436 241 11/12/2025
13.0.0-beta.435 251 11/11/2025
13.0.0-beta.433 151 11/10/2025
13.0.0-beta.432 165 11/10/2025
13.0.0-beta.431 158 11/6/2025
13.0.0-beta.430 150 11/6/2025
9.9.0-preview.1.251103-2303 162 11/3/2025
9.9.0-beta.427 151 11/3/2025
9.8.1-beta.426 159 11/3/2025
9.8.1-beta.424 163 10/28/2025
9.8.1-beta.420 145 10/27/2025
9.8.1-beta.419 139 10/27/2025
9.8.1-beta.417 132 10/27/2025
9.8.1-beta.414 145 10/24/2025
9.8.1-beta.413 136 10/22/2025
9.8.1-beta.410 145 10/16/2025
9.8.1-beta.408 135 10/16/2025
9.8.1-beta.407 129 10/16/2025
9.8.1-beta.406 139 10/15/2025
9.8.0-preview.1.250926-0110 323 9/26/2025
9.8.0-beta.405 134 10/15/2025
9.8.0-beta.404 151 10/13/2025
9.8.0-beta.402 147 9/29/2025
9.8.0-beta.401 143 9/29/2025
9.8.0-beta.399 139 9/26/2025
9.8.0-beta.398 145 9/25/2025
9.8.0-beta.397 139 9/25/2025
9.8.0-beta.395 152 9/24/2025
9.8.0-beta.394 152 9/23/2025
9.8.0-beta.393 150 9/23/2025
9.8.0-beta.392 147 9/23/2025
9.8.0-beta.389 277 9/18/2025
9.8.0-beta.388 272 9/16/2025
9.8.0-beta.386 226 9/15/2025
9.8.0-beta.385 214 9/15/2025
9.8.0-beta.384 74 9/13/2025
9.8.0-beta.376 158 9/8/2025
9.8.0-beta.375 78 9/6/2025
9.8.0-beta.373 160 9/5/2025
9.8.0-beta.372 152 9/4/2025
9.8.0-beta.370 148 9/2/2025
9.8.0-beta.364 141 9/1/2025
9.7.2 4,031 8/29/2025
9.7.2-beta.362 182 8/29/2025
9.7.2-beta.361 182 8/29/2025
9.7.2-beta.360 188 8/29/2025
9.7.2-beta.359 185 8/28/2025
9.7.2-beta.358 193 8/28/2025
9.7.2-beta.357 179 8/28/2025
9.7.1 336 8/27/2025
9.7.1-beta.355 190 8/27/2025
9.7.1-beta.354 202 8/27/2025
9.7.1-beta.353 187 8/27/2025
9.7.1-beta.352 191 8/27/2025
9.7.1-beta.351 179 8/27/2025
9.7.1-beta.348 170 8/14/2025
9.7.1-beta.344 98 8/10/2025
9.7.1-beta.343 223 8/8/2025
9.7.1-beta.342 227 8/7/2025
9.7.1-beta.341 223 8/6/2025
9.7.1-beta.340 214 8/5/2025
9.7.1-beta.339 215 8/5/2025
9.7.0 685 8/1/2025
9.7.0-beta.337 96 8/1/2025
9.7.0-beta.336 110 8/1/2025
9.7.0-beta.335 112 8/1/2025
9.7.0-beta.333 121 7/30/2025
9.6.1-beta.332 123 7/30/2025
9.6.1-beta.331 120 7/30/2025
9.6.1-beta.330 117 7/30/2025
9.6.1-beta.329 119 7/30/2025
9.6.1-beta.328 134 7/29/2025
9.6.1-beta.327 135 7/28/2025
9.6.1-beta.326 135 7/28/2025
9.6.0 1,509 7/10/2025
9.6.0-beta.324 151 7/10/2025
9.5.1-beta.323 142 7/10/2025
9.5.1-beta.322 130 7/10/2025
9.5.1-beta.321 144 7/10/2025
9.5.1-beta.320 150 7/9/2025
9.5.1-beta.319 142 7/8/2025
9.5.1-beta.318 151 7/2/2025
9.5.1-beta.317 144 6/30/2025
9.5.1-beta.315 157 6/26/2025
9.5.1-beta.314 144 6/23/2025
9.5.1-beta.313 166 6/20/2025
9.5.1-beta.312 134 6/20/2025
9.5.1-beta.311 149 6/18/2025
9.5.1-beta.310 151 6/17/2025
9.5.1-beta.309 134 6/17/2025
9.5.1-beta.308 152 6/17/2025
9.5.1-beta.307 150 6/16/2025
9.5.1-beta.306 292 6/11/2025
9.5.1-beta.305 120 6/7/2025
9.5.1-beta.304 154 6/6/2025
9.5.1-beta.303 156 6/4/2025
9.5.1-beta.302 154 6/4/2025
9.5.1-beta.301 150 6/2/2025
9.5.1-beta.300 151 5/28/2025
9.5.0 1,111 5/27/2025
9.5.0-beta.299 146 5/27/2025
9.5.0-beta.298 160 5/26/2025
9.5.0-beta.297 137 5/24/2025
9.5.0-beta.296 99 5/24/2025
9.5.0-beta.295 108 5/24/2025
9.4.1-beta.291 145 5/19/2025
9.4.1-beta.289 162 5/16/2025
9.4.1-beta.288 211 5/16/2025
9.4.1-beta.287 237 5/16/2025
9.4.1-beta.286 239 5/16/2025
9.4.1-beta.285 228 5/14/2025
9.4.1-beta.284 267 5/13/2025
9.4.1-beta.283 237 5/12/2025
9.4.1-beta.282 189 5/7/2025
9.4.1-beta.280 153 5/2/2025
9.4.1-beta.279 183 5/2/2025
9.4.1-beta.277 551 4/23/2025
9.4.1-beta.276 171 4/23/2025
9.4.1-beta.275 165 4/23/2025
9.4.1-beta.274 187 4/23/2025
9.4.1-beta.273 173 4/23/2025
9.4.1-beta.272 196 4/23/2025
9.4.1-beta.271 155 4/23/2025
9.4.1-beta.270 185 4/20/2025
9.4.0 494 4/20/2025
9.4.0-beta.269 187 4/20/2025
9.4.0-beta.268 163 4/20/2025
9.3.1-beta.267 180 4/20/2025
9.3.1-beta.266 122 4/19/2025
9.3.1-beta.265 201 4/15/2025
9.3.1-beta.264 175 4/15/2025
9.3.1-beta.263 184 4/15/2025
9.3.1-beta.262 200 4/15/2025
9.3.1-beta.260 942 4/10/2025
9.3.1-beta.259 185 4/8/2025
9.3.1-beta.258 191 4/8/2025
9.3.1-beta.257 160 4/8/2025
9.3.1-beta.256 168 4/8/2025
9.3.1-beta.255 187 4/8/2025
9.3.1-beta.254 163 4/8/2025
9.3.1-beta.253 189 4/1/2025
9.3.1-beta.252 129 3/27/2025
9.3.1-beta.250 170 3/27/2025
9.3.1-beta.249 139 3/27/2025
9.3.1-beta.248 171 3/27/2025
9.3.1-beta.247 124 3/27/2025
9.3.1-beta.244 476 3/25/2025
9.3.1-beta.242 476 3/24/2025
9.3.1-beta.241 161 3/19/2025
9.3.0 1,115 3/19/2025
9.3.0-beta.239 145 3/19/2025
9.2.2-beta.237 154 3/19/2025
9.2.2-beta.236 290 3/14/2025
9.2.2-beta.230 200 3/13/2025
9.2.2-beta.229 160 3/13/2025
9.2.2-beta.228 172 3/11/2025
9.2.2-beta.227 201 3/11/2025
9.2.2-beta.226 171 3/11/2025
9.2.2-beta.225 181 3/11/2025
9.2.2-beta.224 194 3/11/2025
9.2.2-beta.223 193 3/10/2025
9.2.2-beta.222 171 3/10/2025
9.2.2-beta.220 171 3/9/2025
9.2.2-beta.218 160 3/9/2025
9.2.2-beta.217 211 3/7/2025
9.2.2-beta.216 230 3/7/2025
9.2.2-beta.215 246 3/7/2025
9.2.2-beta.214 241 3/5/2025
9.2.2-beta.213 218 3/5/2025
9.2.2-beta.212 203 3/5/2025
9.2.2-beta.211 206 3/4/2025
9.2.2-beta.210 219 3/4/2025
9.2.2-beta.208 119 3/3/2025
9.2.1 826 3/3/2025
9.2.1-beta.207 122 3/2/2025
9.2.1-beta.206 96 3/1/2025
9.2.1-beta.205 109 2/27/2025
9.2.1-beta.204 94 2/26/2025
9.2.1-beta.203 99 2/26/2025
9.2.0 1,005 2/26/2025
9.2.0-beta.202 81 2/26/2025
9.2.0-beta.201 123 2/26/2025
9.2.0-beta.199 91 2/26/2025
9.2.0-beta.198 91 2/26/2025
9.1.1-beta.197 101 2/25/2025
9.1.1-beta.196 95 2/25/2025
9.1.1-beta.195 88 2/25/2025
9.1.1-beta.194 99 2/25/2025
9.1.1-beta.193 90 2/25/2025
9.1.1-beta.192 140 2/24/2025
9.1.1-beta.191 133 2/24/2025
9.1.1-beta.190 93 2/19/2025
9.1.1-beta.189 105 2/19/2025
9.1.1-beta.188 124 2/19/2025
9.1.1-beta.187 137 2/19/2025
9.1.1-beta.183 111 2/18/2025
9.1.1-beta.182 105 2/18/2025
9.1.1-beta.181 112 2/18/2025
9.1.1-beta.180 103 2/17/2025
9.1.1-beta.178 102 2/17/2025
9.1.1-beta.177 103 2/12/2025
9.1.1-beta.176 134 2/11/2025
9.1.1-beta.175 117 2/11/2025
9.1.1-beta.173 106 2/10/2025
9.1.1-beta.169 95 2/6/2025
9.1.1-beta.168 98 2/5/2025
9.1.1-beta.166 106 2/5/2025
9.1.1-beta.165 120 2/5/2025
9.1.1-beta.164 144 2/3/2025
9.1.1-beta.162 127 2/3/2025
9.1.1-beta.155 104 1/30/2025
9.1.1-beta.154 92 1/30/2025
9.1.1-beta.153 76 1/30/2025
9.1.1-beta.152 87 1/29/2025
9.1.1-beta.150 126 1/29/2025
9.1.1-beta.148 99 1/26/2025
9.1.1-beta.147 106 1/26/2025
9.1.1-beta.146 99 1/23/2025
9.1.1-beta.145 121 1/22/2025
9.1.1-beta.144 115 1/22/2025
9.1.1-beta.142 110 1/22/2025
9.1.1-beta.140 111 1/22/2025
9.1.1-beta.139 90 1/21/2025
9.1.1-beta.138 118 1/20/2025
9.1.1-beta.137 122 1/17/2025
9.1.1-beta.136 95 1/15/2025
9.1.1-beta.135 74 1/15/2025