Skip to main content
net10.0net8.0net9.0

An Aspire client integration for the Microsoft.Data.Sqlite.Core package.

Published
May 14, 2026
5mo ago
Total Downloads
57.9K
57,879

Install

dotnet add package CommunityToolkit.Aspire.Microsoft.Data.Sqlite --version 13.3.0
ProductVersions
.NET
net10.0net8.0net9.0

README

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

Changes from Previous Version

No structural changes between v13.2.1-beta.604 and v13.3.0.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.The published metadata declares 15 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.