언어

SqlServerDbContextOptionsExtensions 클래스

정의

에 대한 특정 확장 메서드를 DbContextOptionsBuilderSQL 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 데이터베이스에 액세스하는 것을 참조하세요.

메서드

속성 Description
ConfigureSqlEngine(DbContextOptionsBuilder, Action<SqlEngineDbContextOptionsBuilder>)

SQL Server, Azure SQL, Azure Synapse 데이터베이스에 연결하도록 컨텍스트를 구성하지만 처음에는 설정 DbConnection 하거나 연결 문자열 설정하지 않습니다.

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

SQL Server, Azure SQL, Azure Synapse 데이터베이스에 연결하도록 컨텍스트를 구성하지만 처음에는 설정 DbConnection 하거나 연결 문자열 설정하지 않습니다.

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 데이터베이스에 연결하도록 컨텍스트를 구성합니다.

적용 대상