MMLib.Alvo.Data.Sqlite
The SQLite driver for Alvo, registered with UseSqlite.
The SQLite driver for Alvo, registered with UseSqlite.
Namespace MMLib.Alvo.Data.Sqlite
Section titled “Namespace MMLib.Alvo.Data.Sqlite”SqliteProviderOptions
Section titled “SqliteProviderOptions”class
Configuration for the SQLite database provider, resolved from DI as IOptions<SqliteProviderOptions> when the provider is built. Every UseSqlite overload funnels into this object, so a host can pass the connection string inline or bind it from configuration.
ConnectionString
Section titled “ConnectionString”public string? ConnectionString { get; set; }Gets or sets the SQLite ADO.NET connection string. A connection string must end up set by the time the provider is built (inline, or via a configure delegate that binds it from configuration); otherwise provider construction fails fast with a clear error.
Namespace Microsoft.Extensions.DependencyInjection
Section titled “Namespace Microsoft.Extensions.DependencyInjection”AlvoSqliteBuilderExtensions
Section titled “AlvoSqliteBuilderExtensions”static class
Registers SQLite as Alvo’s database provider on an IAlvoBuilder.
DefaultConnectionName
Section titled “DefaultConnectionName”public const string DefaultConnectionName = "Alvo";The default ConnectionStrings entry name the configuration overloads resolve.
UseSqlite
Section titled “UseSqlite”public static IAlvoBuilder UseSqlite(this IAlvoBuilder builder)Registers SQLite as Alvo’s database provider, resolving the connection string from the application’s IConfiguration when the provider is built — the standard ConnectionStrings:Alvo entry (see GetConnectionString). Use this parameterless overload when the connection string lives in configuration (appsettings.json, environment variables, …) under the default DefaultConnectionName name; the resolution is deferred, so the host’s IConfiguration only has to be registered by the time the provider is built.
builder— The Alvo builder.
Returns: The same builder, for chaining.
public static IAlvoBuilder UseSqlite(this IAlvoBuilder builder, Action<SqliteProviderOptions> configure)Registers SQLite as Alvo’s database provider, configured entirely through SqliteProviderOptions (set the connection string inside configure, e.g. by binding it from configuration). Today this wires the schema-registry and migration services to SQLite; further Alvo data services attach here as the framework grows.
builder— The Alvo builder.configure— Configures the SQLite provider options.
Returns: The same builder, for chaining.
public static IAlvoBuilder UseSqlite(this IAlvoBuilder builder, IConfiguration configuration, string connectionName = "Alvo")Registers SQLite as Alvo’s database provider, resolving the connection string by name from the given IConfiguration — the standard ConnectionStrings:{connectionName} entry. Use this when the connection string lives under a non-default name.
builder— The Alvo builder.configuration— The configuration to read the connection string from.connectionName— TheConnectionStringsentry name (defaultDefaultConnectionName).
Returns: The same builder, for chaining.
public static IAlvoBuilder UseSqlite(this IAlvoBuilder builder, string connectionString)Registers SQLite as Alvo’s database provider using the given connection string. Today this wires the schema-registry and migration services (ISchemaMigrator, ISchemaIntrospector, IAppliedSchemaStore) to SQLite; further Alvo data services attach here as the framework grows.
builder— The Alvo builder.connectionString— The SQLite ADO.NET connection string (e.g. fromconfig.GetConnectionString("Alvo")).
Returns: The same builder, for chaining.
public static IAlvoBuilder UseSqlite(this IAlvoBuilder builder, string connectionString, Action<SqliteProviderOptions> configure)Registers SQLite as Alvo’s database provider using the given connection string, then applies configure for additional tuning. Today this wires the schema-registry and migration services to SQLite; further Alvo data services attach here as the framework grows.
builder— The Alvo builder.connectionString— The SQLite ADO.NET connection string.configure— Configures additional SQLite provider options; runs after the connection string is set.
Returns: The same builder, for chaining.