CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite
9.6.0
Prefix Reserved
dotnet add package CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite --version 9.6.0
NuGet\Install-Package CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite -Version 9.6.0
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.6.0" />
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.6.0" />
<PackageReference Include="CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite" />
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.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite, 9.6.0"
#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.6.0
#: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.6.0
#tool nuget:?package=CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite&version=9.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
- https://learn.microsoft.com/dotnet/aspire/community-toolkit/sqlite-entity-framework-integration
- https://learn.microsoft.com/ef/core/providers/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 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.
-
net8.0
- Microsoft.EntityFrameworkCore.Sqlite (>= 9.0.4)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.4)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.4)
- Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore (>= 8.0.13)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.4)
-
net9.0
- Microsoft.EntityFrameworkCore.Sqlite (>= 9.0.4)
- Microsoft.Extensions.Configuration.Binder (>= 9.0.4)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 9.0.4)
- Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore (>= 8.0.13)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.4)
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.6.0 | 170 | 7/10/2025 |
9.6.0-beta.324 | 107 | 7/10/2025 |
9.5.1-beta.323 | 101 | 7/10/2025 |
9.5.1-beta.322 | 103 | 7/10/2025 |
9.5.1-beta.321 | 102 | 7/10/2025 |
9.5.1-beta.320 | 105 | 7/9/2025 |
9.5.1-beta.319 | 111 | 7/8/2025 |
9.5.1-beta.318 | 114 | 7/2/2025 |
9.5.1-beta.317 | 105 | 6/30/2025 |
9.5.1-beta.315 | 117 | 6/26/2025 |
9.5.1-beta.314 | 110 | 6/23/2025 |
9.5.1-beta.313 | 108 | 6/20/2025 |
9.5.1-beta.312 | 103 | 6/20/2025 |
9.5.1-beta.311 | 111 | 6/18/2025 |
9.5.1-beta.310 | 108 | 6/17/2025 |
9.5.1-beta.309 | 112 | 6/17/2025 |
9.5.1-beta.308 | 113 | 6/17/2025 |
9.5.1-beta.307 | 114 | 6/16/2025 |
9.5.1-beta.306 | 254 | 6/11/2025 |
9.5.1-beta.305 | 88 | 6/7/2025 |
9.5.1-beta.304 | 104 | 6/6/2025 |
9.5.1-beta.303 | 116 | 6/4/2025 |
9.5.1-beta.302 | 118 | 6/4/2025 |
9.5.1-beta.301 | 113 | 6/2/2025 |
9.5.1-beta.300 | 117 | 5/28/2025 |
9.5.0 | 944 | 5/27/2025 |
9.5.0-beta.299 | 117 | 5/27/2025 |
9.5.0-beta.298 | 124 | 5/26/2025 |
9.5.0-beta.297 | 81 | 5/24/2025 |
9.5.0-beta.296 | 67 | 5/24/2025 |
9.5.0-beta.295 | 44 | 5/24/2025 |
9.4.1-beta.291 | 115 | 5/19/2025 |
9.4.1-beta.289 | 129 | 5/16/2025 |
9.4.1-beta.288 | 181 | 5/16/2025 |
9.4.1-beta.287 | 182 | 5/16/2025 |
9.4.1-beta.286 | 187 | 5/16/2025 |
9.4.1-beta.285 | 202 | 5/14/2025 |
9.4.1-beta.284 | 205 | 5/13/2025 |
9.4.1-beta.283 | 198 | 5/12/2025 |
9.4.1-beta.282 | 123 | 5/7/2025 |
9.4.1-beta.280 | 113 | 5/2/2025 |
9.4.1-beta.279 | 123 | 5/2/2025 |
9.4.1-beta.277 | 472 | 4/23/2025 |
9.4.1-beta.276 | 130 | 4/23/2025 |
9.4.1-beta.275 | 125 | 4/23/2025 |
9.4.1-beta.274 | 132 | 4/23/2025 |
9.4.1-beta.273 | 126 | 4/23/2025 |
9.4.1-beta.272 | 131 | 4/23/2025 |
9.4.1-beta.271 | 121 | 4/23/2025 |
9.4.1-beta.270 | 144 | 4/20/2025 |
9.4.0 | 409 | 4/20/2025 |
9.4.0-beta.269 | 136 | 4/20/2025 |
9.4.0-beta.268 | 123 | 4/20/2025 |
9.3.1-beta.267 | 131 | 4/20/2025 |
9.3.1-beta.266 | 62 | 4/19/2025 |
9.3.1-beta.265 | 165 | 4/15/2025 |
9.3.1-beta.264 | 150 | 4/15/2025 |
9.3.1-beta.263 | 156 | 4/15/2025 |
9.3.1-beta.262 | 159 | 4/15/2025 |
9.3.1-beta.260 | 875 | 4/10/2025 |
9.3.1-beta.259 | 135 | 4/8/2025 |
9.3.1-beta.258 | 130 | 4/8/2025 |
9.3.1-beta.257 | 133 | 4/8/2025 |
9.3.1-beta.256 | 126 | 4/8/2025 |
9.3.1-beta.255 | 135 | 4/8/2025 |
9.3.1-beta.254 | 128 | 4/8/2025 |
9.3.1-beta.253 | 132 | 4/1/2025 |
9.3.1-beta.252 | 106 | 3/27/2025 |
9.3.1-beta.250 | 113 | 3/27/2025 |
9.3.1-beta.249 | 106 | 3/27/2025 |
9.3.1-beta.248 | 117 | 3/27/2025 |
9.3.1-beta.247 | 104 | 3/27/2025 |
9.3.1-beta.244 | 456 | 3/25/2025 |
9.3.1-beta.242 | 456 | 3/24/2025 |
9.3.1-beta.241 | 123 | 3/19/2025 |
9.3.0 | 1,028 | 3/19/2025 |
9.3.0-beta.239 | 118 | 3/19/2025 |
9.2.2-beta.237 | 120 | 3/19/2025 |
9.2.2-beta.236 | 230 | 3/14/2025 |
9.2.2-beta.230 | 137 | 3/13/2025 |
9.2.2-beta.229 | 118 | 3/13/2025 |
9.2.2-beta.228 | 134 | 3/11/2025 |
9.2.2-beta.227 | 142 | 3/11/2025 |
9.2.2-beta.226 | 131 | 3/11/2025 |
9.2.2-beta.225 | 127 | 3/11/2025 |
9.2.2-beta.224 | 133 | 3/11/2025 |
9.2.2-beta.223 | 133 | 3/10/2025 |
9.2.2-beta.222 | 137 | 3/10/2025 |
9.2.2-beta.220 | 140 | 3/9/2025 |
9.2.2-beta.218 | 129 | 3/9/2025 |
9.2.2-beta.217 | 176 | 3/7/2025 |
9.2.2-beta.216 | 170 | 3/7/2025 |
9.2.2-beta.215 | 183 | 3/7/2025 |
9.2.2-beta.214 | 184 | 3/5/2025 |
9.2.2-beta.213 | 160 | 3/5/2025 |
9.2.2-beta.212 | 168 | 3/5/2025 |
9.2.2-beta.211 | 173 | 3/4/2025 |
9.2.2-beta.210 | 178 | 3/4/2025 |
9.2.2-beta.208 | 73 | 3/3/2025 |
9.2.1 | 553 | 3/3/2025 |
9.2.1-beta.207 | 91 | 3/2/2025 |
9.2.1-beta.206 | 66 | 3/1/2025 |
9.2.1-beta.205 | 68 | 2/27/2025 |
9.2.1-beta.204 | 62 | 2/26/2025 |
9.2.1-beta.203 | 64 | 2/26/2025 |
9.2.0 | 360 | 2/26/2025 |
9.2.0-beta.202 | 53 | 2/26/2025 |
9.2.0-beta.201 | 65 | 2/26/2025 |
9.2.0-beta.199 | 58 | 2/26/2025 |
9.2.0-beta.198 | 53 | 2/26/2025 |
9.1.1-beta.197 | 71 | 2/25/2025 |
9.1.1-beta.196 | 64 | 2/25/2025 |
9.1.1-beta.195 | 57 | 2/25/2025 |
9.1.1-beta.194 | 61 | 2/25/2025 |
9.1.1-beta.193 | 60 | 2/25/2025 |
9.1.1-beta.192 | 80 | 2/24/2025 |
9.1.1-beta.191 | 78 | 2/24/2025 |
9.1.1-beta.190 | 65 | 2/19/2025 |
9.1.1-beta.189 | 67 | 2/19/2025 |
9.1.1-beta.188 | 70 | 2/19/2025 |
9.1.1-beta.187 | 83 | 2/19/2025 |
9.1.1-beta.183 | 72 | 2/18/2025 |
9.1.1-beta.182 | 72 | 2/18/2025 |
9.1.1-beta.181 | 80 | 2/18/2025 |
9.1.1-beta.180 | 74 | 2/17/2025 |
9.1.1-beta.178 | 65 | 2/17/2025 |
9.1.1-beta.177 | 74 | 2/12/2025 |
9.1.1-beta.176 | 80 | 2/11/2025 |
9.1.1-beta.175 | 72 | 2/11/2025 |
9.1.1-beta.173 | 69 | 2/10/2025 |
9.1.1-beta.169 | 66 | 2/6/2025 |
9.1.1-beta.168 | 64 | 2/5/2025 |
9.1.1-beta.166 | 66 | 2/5/2025 |
9.1.1-beta.165 | 66 | 2/5/2025 |
9.1.1-beta.164 | 80 | 2/3/2025 |
9.1.1-beta.162 | 79 | 2/3/2025 |
9.1.1-beta.155 | 75 | 1/30/2025 |
9.1.1-beta.154 | 60 | 1/30/2025 |
9.1.1-beta.153 | 57 | 1/30/2025 |
9.1.1-beta.152 | 54 | 1/29/2025 |
9.1.1-beta.150 | 66 | 1/29/2025 |
9.1.1-beta.148 | 61 | 1/26/2025 |
9.1.1-beta.147 | 68 | 1/26/2025 |
9.1.1-beta.146 | 66 | 1/23/2025 |
9.1.1-beta.145 | 67 | 1/22/2025 |
9.1.1-beta.144 | 65 | 1/22/2025 |
9.1.1-beta.142 | 64 | 1/22/2025 |
9.1.1-beta.140 | 65 | 1/22/2025 |
9.1.1-beta.139 | 62 | 1/21/2025 |
9.1.1-beta.138 | 63 | 1/20/2025 |
9.1.1-beta.137 | 67 | 1/17/2025 |
9.1.1-beta.136 | 55 | 1/15/2025 |
9.1.1-beta.135 | 33 | 1/15/2025 |