addSqlite

Method
📦 CommunityToolkit.Aspire.Hosting.Sqlite v13.6.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addSqlite(
name: string,
databasePath?: string,
databaseFileName?: string): SqliteResource;
}

Signature

methodaddSqlitebuilder
Adds an Sqlite resource to the application builder.
addSqlite(
name: string,
databasePath?: string,
databaseFileName?: string): SqliteResource
namestringThe name of the resource.
databasePathstringoptionalThe optional path to the database file. If no path is provided the database is stored in a temporary location.
databaseFileNamestringoptionalThe filename of the database file. Must include extension. If no file name is provided, a randomly generated file name is used.
SqliteResource

Applies to

This method applies to the following types: