SqliteDbContextOptionsBuilderExtensions SqliteDbContextOptionsBuilderExtensions Class

Definition

SQLite specific extension methods for DbContextOptionsBuilder.

public static class SqliteDbContextOptionsBuilderExtensions
Public Module SqliteDbContextOptionsBuilderExtensions
Inheritance
System.ObjectSystem.Object
SqliteDbContextOptionsBuilderExtensionsSqliteDbContextOptionsBuilderExtensions

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object

UseSqlite(DbContextOptionsBuilder, DbConnection, Action) 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
DbContextOptionsBuilder DbContextOptionsBuilder

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<SqliteDbContextOptionsBuilder> System.Action(Of SqliteDbContextOptionsBuilder)

An optional action to allow additional SQLite specific configuration.

Returns

The options builder so that further configuration can be chained.

UseSqlite(DbContextOptionsBuilder, String, Action) 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
optionsBuilder
DbContextOptionsBuilder DbContextOptionsBuilder

The builder being used to configure the context.

connectionString
System.String System.String

The connection string of the database to connect to.

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

An optional action to allow additional SQLite specific configuration.

Returns

The options builder so that further configuration can be chained.

UseSqlite(DbContextOptionsBuilder, DbConnection, Action) 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)
Type Parameters
TContext

The type of context to be configured.

Parameters
optionsBuilder
DbContextOptionsBuilder<TContext> DbContextOptionsBuilder(Of TContext)

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<SqliteDbContextOptionsBuilder> System.Action(Of SqliteDbContextOptionsBuilder)

An optional action to allow additional SQLite specific configuration.

Returns

The options builder so that further configuration can be chained.

UseSqlite(DbContextOptionsBuilder, String, Action) 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)
Type Parameters
TContext

The type of context to be configured.

Parameters
optionsBuilder
DbContextOptionsBuilder<TContext> DbContextOptionsBuilder(Of TContext)

The builder being used to configure the context.

connectionString
System.String System.String

The connection string of the database to connect to.

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

An optional action to allow additional SQLite specific configuration.

Returns

The options builder so that further configuration can be chained.