SqliteDbContextOptionsBuilderExtensions SqliteDbContextOptionsBuilderExtensions Class

SQLite specific extension methods for DbContextOptionsBuilder.

Syntax

Declaration

public static class SqliteDbContextOptionsBuilderExtensionsPublic Module SqliteDbContextOptionsBuilderExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • SqliteDbContextOptionsBuilderExtensions
    SqliteDbContextOptionsBuilderExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

Configures the context to connect to a SQLite database.

Configures the context to connect to a SQLite database.

Configures the context to connect to a SQLite database.

Configures the context to connect to a SQLite database.

Methods

  • UseSqlite(DbContextOptionsBuilder, DbConnection, Action<SqliteDbContextOptionsBuilder>)
    UseSqlite(DbContextOptionsBuilder, DbConnection, Action(Of SqliteDbContextOptionsBuilder))

    Configures the context to connect to a SQLite database.

    public static DbContextOptionsBuilder UseSqlite(this DbContextOptionsBuilder optionsBuilder, DbConnection connection, Action<SqliteDbContextOptionsBuilder> sqliteOptionsAction = null)<ExtensionAttribute>
    Public Shared Function UseSqlite(optionsBuilder As DbContextOptionsBuilder, connection As DbConnection, sqliteOptionsAction As Action(Of SqliteDbContextOptionsBuilder) = Nothing) As DbContextOptionsBuilder

    Parameters

    • optionsBuilder

      The builder being used to configure the context.

    • connection
      DbConnection
      DbConnection

      An existing to be used to connect to the database. If the connection is in the open state then EF will not open or close the connection. If the connection is in the closed state then EF will open and close the connection as needed.

    • sqliteOptionsAction
      System.Action<T>(Of SqliteDbContextOptionsBuilder)

      An optional action to allow additional SQLite specific configuration.

    Returns

  • UseSqlite(DbContextOptionsBuilder, String, Action<SqliteDbContextOptionsBuilder>)
    UseSqlite(DbContextOptionsBuilder, String, Action(Of SqliteDbContextOptionsBuilder))

    Configures the context to connect to a SQLite database.

    public static DbContextOptionsBuilder UseSqlite(this DbContextOptionsBuilder optionsBuilder, string connectionString, Action<SqliteDbContextOptionsBuilder> sqliteOptionsAction = null)<ExtensionAttribute>
    Public Shared Function UseSqlite(optionsBuilder As DbContextOptionsBuilder, connectionString As String, sqliteOptionsAction As Action(Of SqliteDbContextOptionsBuilder) = Nothing) As DbContextOptionsBuilder

    Parameters

    Returns

  • UseSqlite<TContext>(DbContextOptionsBuilder<TContext>, DbConnection, Action<SqliteDbContextOptionsBuilder>)
    UseSqlite(Of TContext)(DbContextOptionsBuilder(Of TContext), DbConnection, Action(Of SqliteDbContextOptionsBuilder))

    Configures the context to connect to a SQLite database.

    public static DbContextOptionsBuilder<TContext> UseSqlite<TContext>(this DbContextOptionsBuilder<TContext> optionsBuilder, DbConnection connection, Action<SqliteDbContextOptionsBuilder> sqliteOptionsAction = null)where TContext : DbContext<ExtensionAttribute>
    Public Shared Function UseSqlite(Of TContext As DbContext)(optionsBuilder As DbContextOptionsBuilder(Of TContext), connection As DbConnection, sqliteOptionsAction As Action(Of SqliteDbContextOptionsBuilder) = Nothing) As DbContextOptionsBuilder(Of TContext)

    Parameters

    Returns

  • UseSqlite<TContext>(DbContextOptionsBuilder<TContext>, String, Action<SqliteDbContextOptionsBuilder>)
    UseSqlite(Of TContext)(DbContextOptionsBuilder(Of TContext), String, Action(Of SqliteDbContextOptionsBuilder))

    Configures the context to connect to a SQLite database.

    public static DbContextOptionsBuilder<TContext> UseSqlite<TContext>(this DbContextOptionsBuilder<TContext> optionsBuilder, string connectionString, Action<SqliteDbContextOptionsBuilder> sqliteOptionsAction = null)where TContext : DbContext<ExtensionAttribute>
    Public Shared Function UseSqlite(Of TContext As DbContext)(optionsBuilder As DbContextOptionsBuilder(Of TContext), connectionString As String, sqliteOptionsAction As Action(Of SqliteDbContextOptionsBuilder) = Nothing) As DbContextOptionsBuilder(Of TContext)

    Parameters

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.Sqlite.dll