Language

SqlServerDbContextOptionsExtensions クラス

定義

DbContextOptionsBuilderの特定の拡張メソッドをSQL Serverします。

public static class SqlServerDbContextOptionsExtensions
[System.Runtime.CompilerServices.Nullable(0)]
public static class SqlServerDbContextOptionsExtensions
type SqlServerDbContextOptionsExtensions = class
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerDbContextOptionsExtensions = class
Public Module SqlServerDbContextOptionsExtensions
継承
SqlServerDbContextOptionsExtensions
属性

注釈

詳細と例については、「DbContextOptions の使用」および「EF Core を使用したデータベースのSQL Server、Azure SQL、Azure Synapseへのアクセス」を参照してください。

メソッド

Name 説明
ConfigureSqlEngine(DbContextOptionsBuilder, Action<SqlEngineDbContextOptionsBuilder>)

DbConnectionまたは接続文字列を最初に設定せずに、SQL Server、Azure SQL、Azure Synapse データベースのいずれかに接続するようにコンテキストを構成します。

ConfigureSqlEngine<TContext>(DbContextOptionsBuilder<TContext>, Action<SqlEngineDbContextOptionsBuilder>)

DbConnectionまたは接続文字列を最初に設定せずに、SQL Server、Azure SQL、Azure Synapse データベースのいずれかに接続するようにコンテキストを構成します。

UseAzureSql(DbContextOptionsBuilder, Action<AzureSqlDbContextOptionsBuilder>)

DbConnectionまたは接続文字列を最初に設定せずに、Azure SQL データベースに接続するようにコンテキストを構成します。

UseAzureSql(DbContextOptionsBuilder, DbConnection, Action<AzureSqlDbContextOptionsBuilder>)

Azure SQL データベースに接続するようにコンテキストを構成します。

UseAzureSql(DbContextOptionsBuilder, DbConnection, Boolean, Action<AzureSqlDbContextOptionsBuilder>)

Azure SQL データベースに接続するようにコンテキストを構成します。

UseAzureSql(DbContextOptionsBuilder, String, Action<AzureSqlDbContextOptionsBuilder>)

Azure SQL データベースに接続するようにコンテキストを構成します。

UseAzureSql<TContext>(DbContextOptionsBuilder<TContext>, Action<AzureSqlDbContextOptionsBuilder>)

DbConnectionまたは接続文字列を最初に設定せずに、Azure SQL データベースに接続するようにコンテキストを構成します。

UseAzureSql<TContext>(DbContextOptionsBuilder<TContext>, DbConnection, Action<AzureSqlDbContextOptionsBuilder>)

Azure SQL データベースに接続するようにコンテキストを構成します。

UseAzureSql<TContext>(DbContextOptionsBuilder<TContext>, DbConnection, Boolean, Action<AzureSqlDbContextOptionsBuilder>)

Azure SQL データベースに接続するようにコンテキストを構成します。

UseAzureSql<TContext>(DbContextOptionsBuilder<TContext>, String, Action<AzureSqlDbContextOptionsBuilder>)

Azure SQL データベースに接続するようにコンテキストを構成します。

UseAzureSynapse(DbContextOptionsBuilder, Action<AzureSynapseDbContextOptionsBuilder>)

DbConnectionまたは接続文字列を最初に設定せずに、Azure Synapse データベースに接続するようにコンテキストを構成します。

UseAzureSynapse(DbContextOptionsBuilder, DbConnection, Action<AzureSynapseDbContextOptionsBuilder>)

Azure Synapse データベースに接続するようにコンテキストを構成します。

UseAzureSynapse(DbContextOptionsBuilder, DbConnection, Boolean, Action<AzureSynapseDbContextOptionsBuilder>)

Azure Synapse データベースに接続するようにコンテキストを構成します。

UseAzureSynapse(DbContextOptionsBuilder, String, Action<AzureSynapseDbContextOptionsBuilder>)

Azure Synapse データベースに接続するようにコンテキストを構成します。

UseAzureSynapse<TContext>(DbContextOptionsBuilder<TContext>, Action<AzureSynapseDbContextOptionsBuilder>)

DbConnectionまたは接続文字列を最初に設定せずに、Azure Synapse データベースに接続するようにコンテキストを構成します。

UseAzureSynapse<TContext>(DbContextOptionsBuilder<TContext>, DbConnection, Action<AzureSynapseDbContextOptionsBuilder>)

Azure Synapse データベースに接続するようにコンテキストを構成します。

UseAzureSynapse<TContext>(DbContextOptionsBuilder<TContext>, DbConnection, Boolean, Action<AzureSynapseDbContextOptionsBuilder>)

Azure Synapse データベースに接続するようにコンテキストを構成します。

UseAzureSynapse<TContext>(DbContextOptionsBuilder<TContext>, String, Action<AzureSynapseDbContextOptionsBuilder>)

Azure Synapse データベースに接続するようにコンテキストを構成します。

UseSqlServer(DbContextOptionsBuilder, Action<SqlServerDbContextOptionsBuilder>)

DbConnectionまたは接続文字列を最初に設定せずに、SQL Server データベースに接続するようにコンテキストを構成します。

UseSqlServer(DbContextOptionsBuilder, DbConnection, Action<SqlServerDbContextOptionsBuilder>)

SQL Server データベースに接続するようにコンテキストを構成します。

UseSqlServer(DbContextOptionsBuilder, DbConnection, Boolean, Action<SqlServerDbContextOptionsBuilder>)

SQL Server データベースに接続するようにコンテキストを構成します。

UseSqlServer(DbContextOptionsBuilder, String, Action<SqlServerDbContextOptionsBuilder>)

SQL Server データベースに接続するようにコンテキストを構成します。

UseSqlServer<TContext>(DbContextOptionsBuilder<TContext>, Action<SqlServerDbContextOptionsBuilder>)

DbConnectionまたは接続文字列を最初に設定せずに、SQL Server データベースに接続するようにコンテキストを構成します。

UseSqlServer<TContext>(DbContextOptionsBuilder<TContext>, DbConnection, Action<SqlServerDbContextOptionsBuilder>)

SQL Server データベースに接続するようにコンテキストを構成します。

UseSqlServer<TContext>(DbContextOptionsBuilder<TContext>, DbConnection, Boolean, Action<SqlServerDbContextOptionsBuilder>)

SQL Server データベースに接続するようにコンテキストを構成します。

UseSqlServer<TContext>(DbContextOptionsBuilder<TContext>, String, Action<SqlServerDbContextOptionsBuilder>)

SQL Server データベースに接続するようにコンテキストを構成します。

適用対象