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.0.0-beta.444 0 11/17/2025
13.0.0-beta.443 27 11/17/2025
13.0.0-beta.440 51 11/15/2025
13.0.0-beta.439 216 11/12/2025
13.0.0-beta.438 204 11/12/2025
13.0.0-beta.436 205 11/12/2025
13.0.0-beta.435 213 11/11/2025
13.0.0-beta.433 141 11/10/2025
13.0.0-beta.432 143 11/10/2025
13.0.0-beta.431 128 11/6/2025
13.0.0-beta.430 125 11/6/2025
9.9.0-preview.1.251103-2303 131 11/3/2025
9.9.0-beta.427 128 11/3/2025
9.8.1-beta.426 134 11/3/2025
9.8.1-beta.424 136 10/28/2025
9.8.1-beta.420 124 10/27/2025
9.8.1-beta.419 116 10/27/2025
9.8.1-beta.417 123 10/27/2025
9.8.1-beta.414 122 10/24/2025
9.8.1-beta.413 118 10/22/2025
9.8.1-beta.410 128 10/16/2025
9.8.1-beta.408 109 10/16/2025
9.8.1-beta.407 110 10/16/2025
9.8.1-beta.406 122 10/15/2025
9.8.0-preview.1.250926-0110 239 9/26/2025
9.8.0-beta.405 118 10/15/2025
9.8.0-beta.404 121 10/13/2025
9.8.0-beta.402 125 9/29/2025
9.8.0-beta.401 120 9/29/2025
9.8.0-beta.399 118 9/26/2025
9.8.0-beta.398 129 9/25/2025
9.8.0-beta.397 130 9/25/2025
9.8.0-beta.395 127 9/24/2025
9.8.0-beta.394 130 9/23/2025
9.8.0-beta.393 129 9/23/2025
9.8.0-beta.392 126 9/23/2025
9.8.0-beta.389 253 9/18/2025
9.8.0-beta.388 256 9/16/2025
9.8.0-beta.386 206 9/15/2025
9.8.0-beta.385 199 9/15/2025
9.8.0-beta.384 54 9/13/2025
9.8.0-beta.376 131 9/8/2025
9.8.0-beta.375 59 9/6/2025
9.8.0-beta.373 140 9/5/2025
9.8.0-beta.372 133 9/4/2025
9.8.0-beta.370 127 9/2/2025
9.8.0-beta.364 125 9/1/2025
9.7.2 2,899 8/29/2025
9.7.2-beta.362 168 8/29/2025
9.7.2-beta.361 176 8/29/2025
9.7.2-beta.360 171 8/29/2025
9.7.2-beta.359 170 8/28/2025
9.7.2-beta.358 168 8/28/2025
9.7.2-beta.357 170 8/28/2025
9.7.1 318 8/27/2025
9.7.1-beta.355 170 8/27/2025
9.7.1-beta.354 180 8/27/2025
9.7.1-beta.353 170 8/27/2025
9.7.1-beta.352 171 8/27/2025
9.7.1-beta.351 170 8/27/2025
9.7.1-beta.348 144 8/14/2025
9.7.1-beta.344 95 8/10/2025
9.7.1-beta.343 201 8/8/2025
9.7.1-beta.342 207 8/7/2025
9.7.1-beta.341 204 8/6/2025
9.7.1-beta.340 194 8/5/2025
9.7.1-beta.339 189 8/5/2025
9.7.0 602 8/1/2025
9.7.0-beta.337 86 8/1/2025
9.7.0-beta.336 98 8/1/2025
9.7.0-beta.335 97 8/1/2025
9.7.0-beta.333 104 7/30/2025
9.6.1-beta.332 106 7/30/2025
9.6.1-beta.331 100 7/30/2025
9.6.1-beta.330 104 7/30/2025
9.6.1-beta.329 102 7/30/2025
9.6.1-beta.328 113 7/29/2025
9.6.1-beta.327 119 7/28/2025
9.6.1-beta.326 119 7/28/2025
9.6.0 1,471 7/10/2025
9.6.0-beta.324 133 7/10/2025
9.5.1-beta.323 124 7/10/2025
9.5.1-beta.322 124 7/10/2025
9.5.1-beta.321 126 7/10/2025
9.5.1-beta.320 130 7/9/2025
9.5.1-beta.319 131 7/8/2025
9.5.1-beta.318 129 7/2/2025
9.5.1-beta.317 124 6/30/2025
9.5.1-beta.315 136 6/26/2025
9.5.1-beta.314 125 6/23/2025
9.5.1-beta.313 140 6/20/2025
9.5.1-beta.312 121 6/20/2025
9.5.1-beta.311 128 6/18/2025
9.5.1-beta.310 131 6/17/2025
9.5.1-beta.309 129 6/17/2025
9.5.1-beta.308 130 6/17/2025
9.5.1-beta.307 133 6/16/2025
9.5.1-beta.306 273 6/11/2025
9.5.1-beta.305 103 6/7/2025
9.5.1-beta.304 139 6/6/2025
9.5.1-beta.303 135 6/4/2025
9.5.1-beta.302 135 6/4/2025
9.5.1-beta.301 131 6/2/2025
9.5.1-beta.300 140 5/28/2025
9.5.0 1,073 5/27/2025
9.5.0-beta.299 132 5/27/2025
9.5.0-beta.298 139 5/26/2025
9.5.0-beta.297 115 5/24/2025
9.5.0-beta.296 83 5/24/2025
9.5.0-beta.295 80 5/24/2025
9.4.1-beta.291 133 5/19/2025
9.4.1-beta.289 145 5/16/2025
9.4.1-beta.288 197 5/16/2025
9.4.1-beta.287 213 5/16/2025
9.4.1-beta.286 214 5/16/2025
9.4.1-beta.285 220 5/14/2025
9.4.1-beta.284 246 5/13/2025
9.4.1-beta.283 216 5/12/2025
9.4.1-beta.282 160 5/7/2025
9.4.1-beta.280 129 5/2/2025
9.4.1-beta.279 159 5/2/2025
9.4.1-beta.277 524 4/23/2025
9.4.1-beta.276 150 4/23/2025
9.4.1-beta.275 146 4/23/2025
9.4.1-beta.274 162 4/23/2025
9.4.1-beta.273 155 4/23/2025
9.4.1-beta.272 168 4/23/2025
9.4.1-beta.271 139 4/23/2025
9.4.1-beta.270 161 4/20/2025
9.4.0 468 4/20/2025
9.4.0-beta.269 164 4/20/2025
9.4.0-beta.268 140 4/20/2025
9.3.1-beta.267 162 4/20/2025
9.3.1-beta.266 96 4/19/2025
9.3.1-beta.265 184 4/15/2025
9.3.1-beta.264 166 4/15/2025
9.3.1-beta.263 170 4/15/2025
9.3.1-beta.262 178 4/15/2025
9.3.1-beta.260 921 4/10/2025
9.3.1-beta.259 172 4/8/2025
9.3.1-beta.258 171 4/8/2025
9.3.1-beta.257 152 4/8/2025
9.3.1-beta.256 146 4/8/2025
9.3.1-beta.255 167 4/8/2025
9.3.1-beta.254 146 4/8/2025
9.3.1-beta.253 169 4/1/2025
9.3.1-beta.252 125 3/27/2025
9.3.1-beta.250 147 3/27/2025
9.3.1-beta.249 123 3/27/2025
9.3.1-beta.248 152 3/27/2025
9.3.1-beta.247 118 3/27/2025
9.3.1-beta.244 471 3/25/2025
9.3.1-beta.242 474 3/24/2025
9.3.1-beta.241 138 3/19/2025
9.3.0 1,073 3/19/2025
9.3.0-beta.239 132 3/19/2025
9.2.2-beta.237 136 3/19/2025
9.2.2-beta.236 266 3/14/2025
9.2.2-beta.230 178 3/13/2025
9.2.2-beta.229 138 3/13/2025
9.2.2-beta.228 153 3/11/2025
9.2.2-beta.227 179 3/11/2025
9.2.2-beta.226 151 3/11/2025
9.2.2-beta.225 157 3/11/2025
9.2.2-beta.224 169 3/11/2025
9.2.2-beta.223 173 3/10/2025
9.2.2-beta.222 153 3/10/2025
9.2.2-beta.220 155 3/9/2025
9.2.2-beta.218 146 3/9/2025
9.2.2-beta.217 193 3/7/2025
9.2.2-beta.216 200 3/7/2025
9.2.2-beta.215 217 3/7/2025
9.2.2-beta.214 223 3/5/2025
9.2.2-beta.213 196 3/5/2025
9.2.2-beta.212 182 3/5/2025
9.2.2-beta.211 188 3/4/2025
9.2.2-beta.210 195 3/4/2025
9.2.2-beta.208 100 3/3/2025
9.2.1 703 3/3/2025
9.2.1-beta.207 106 3/2/2025
9.2.1-beta.206 81 3/1/2025
9.2.1-beta.205 88 2/27/2025
9.2.1-beta.204 78 2/26/2025
9.2.1-beta.203 82 2/26/2025
9.2.0 674 2/26/2025
9.2.0-beta.202 67 2/26/2025
9.2.0-beta.201 100 2/26/2025
9.2.0-beta.199 75 2/26/2025
9.2.0-beta.198 70 2/26/2025
9.1.1-beta.197 87 2/25/2025
9.1.1-beta.196 78 2/25/2025
9.1.1-beta.195 72 2/25/2025
9.1.1-beta.194 77 2/25/2025
9.1.1-beta.193 78 2/25/2025
9.1.1-beta.192 116 2/24/2025
9.1.1-beta.191 109 2/24/2025
9.1.1-beta.190 79 2/19/2025
9.1.1-beta.189 84 2/19/2025
9.1.1-beta.188 102 2/19/2025
9.1.1-beta.187 121 2/19/2025
9.1.1-beta.183 89 2/18/2025
9.1.1-beta.182 86 2/18/2025
9.1.1-beta.181 92 2/18/2025
9.1.1-beta.180 89 2/17/2025
9.1.1-beta.178 83 2/17/2025
9.1.1-beta.177 88 2/12/2025
9.1.1-beta.176 122 2/11/2025
9.1.1-beta.175 93 2/11/2025
9.1.1-beta.173 86 2/10/2025
9.1.1-beta.169 84 2/6/2025
9.1.1-beta.168 76 2/5/2025
9.1.1-beta.166 85 2/5/2025
9.1.1-beta.165 100 2/5/2025
9.1.1-beta.164 115 2/3/2025
9.1.1-beta.162 107 2/3/2025
9.1.1-beta.155 90 1/30/2025
9.1.1-beta.154 80 1/30/2025
9.1.1-beta.153 71 1/30/2025
9.1.1-beta.152 72 1/29/2025
9.1.1-beta.150 105 1/29/2025
9.1.1-beta.148 77 1/26/2025
9.1.1-beta.147 85 1/26/2025
9.1.1-beta.146 85 1/23/2025
9.1.1-beta.145 94 1/22/2025
9.1.1-beta.144 95 1/22/2025
9.1.1-beta.142 83 1/22/2025
9.1.1-beta.140 95 1/22/2025
9.1.1-beta.139 77 1/21/2025
9.1.1-beta.138 93 1/20/2025
9.1.1-beta.137 97 1/17/2025
9.1.1-beta.136 75 1/15/2025
9.1.1-beta.135 49 1/15/2025