CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite 9.1.1-beta.154

Prefix Reserved
This is a prerelease version of CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite.
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.1.1-beta.154                
NuGet\Install-Package CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite -Version 9.1.1-beta.154                
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.1.1-beta.154" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite --version 9.1.1-beta.154                
#r "nuget: CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite, 9.1.1-beta.154"                
#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.EntityFrameworkCore.Sqlite as a Cake Addin
#addin nuget:?package=CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite&version=9.1.1-beta.154&prerelease

// Install CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite as a Cake Tool
#tool nuget:?package=CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite&version=9.1.1-beta.154&prerelease                

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. 
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.1.1-beta.190 37 2/19/2025
9.1.1-beta.189 39 2/19/2025
9.1.1-beta.188 37 2/19/2025
9.1.1-beta.187 40 2/19/2025
9.1.1-beta.183 40 2/18/2025
9.1.1-beta.182 38 2/18/2025
9.1.1-beta.181 45 2/18/2025
9.1.1-beta.180 44 2/17/2025
9.1.1-beta.178 36 2/17/2025
9.1.1-beta.177 34 2/12/2025
9.1.1-beta.176 40 2/11/2025
9.1.1-beta.175 35 2/11/2025
9.1.1-beta.173 32 2/10/2025
9.1.1-beta.169 31 2/6/2025
9.1.1-beta.168 33 2/5/2025
9.1.1-beta.166 40 2/5/2025
9.1.1-beta.165 33 2/5/2025
9.1.1-beta.164 44 2/3/2025
9.1.1-beta.162 42 2/3/2025
9.1.1-beta.155 39 1/30/2025
9.1.1-beta.154 28 1/30/2025
9.1.1-beta.153 28 1/30/2025
9.1.1-beta.152 11 1/29/2025
9.1.1-beta.150 31 1/29/2025
9.1.1-beta.148 33 1/26/2025
9.1.1-beta.147 32 1/26/2025
9.1.1-beta.146 35 1/23/2025
9.1.1-beta.145 34 1/22/2025
9.1.1-beta.144 31 1/22/2025
9.1.1-beta.142 33 1/22/2025
9.1.1-beta.140 33 1/22/2025
9.1.1-beta.139 31 1/21/2025
9.1.1-beta.138 32 1/20/2025
9.1.1-beta.137 38 1/17/2025
9.1.1-beta.136 32 1/15/2025
9.1.1-beta.135 15 1/15/2025