TSqlModel.LoadFromDatabaseWithAuthProvider 메서드

정의

지정된 을 사용하여 데이터베이스에서 모델을 로드합니다 options.

public static Microsoft.SqlServer.Dac.Model.TSqlModel LoadFromDatabaseWithAuthProvider(string connectionString, Microsoft.SqlServer.Dac.IUniversalAuthProvider authProvider, Microsoft.SqlServer.Dac.Model.ModelExtractOptions options = default, System.Threading.CancellationToken? cancellationToken = default);
static member LoadFromDatabaseWithAuthProvider : string * Microsoft.SqlServer.Dac.IUniversalAuthProvider * Microsoft.SqlServer.Dac.Model.ModelExtractOptions * Nullable<System.Threading.CancellationToken> -> Microsoft.SqlServer.Dac.Model.TSqlModel
Public Shared Function LoadFromDatabaseWithAuthProvider (connectionString As String, authProvider As IUniversalAuthProvider, Optional options As ModelExtractOptions = Nothing, Optional cancellationToken As Nullable(Of CancellationToken) = Nothing) As TSqlModel

매개 변수

connectionString
String

로드할 데이터베이스 및 카탈로그를 지정하는 연결 문자열.

authProvider
IUniversalAuthProvider

연결을 열 때 인증 SqlConnection 하는 데 사용되는 선택적 범용 인증 공급자입니다.

options
ModelExtractOptions

패키지 추출의 동작에 영향을 주는 옵션을 지정하는 데 사용되는 선택적 ModelExtractOptions 인스턴스입니다. 정적 코드 분석에서 모델을 분석하려면 true로 설정하는 것이 LoadAsScriptBackedModel 좋습니다. 이는 사실이 아닌 한 일부 규칙이 예상대로 작동하지 않을 수 있으므로 중요합니다.

cancellationToken
Nullable<CancellationToken>

로드 작업을 취소하는 데 사용되는 선택적 취소 토큰입니다.

반품

예외

connectionString이 null인 경우

connectionString이 유효한 연결 문자열 또는 옵션이 아닌 경우 스토리지는 열거형 형식의 유효한 값이 아닙니다.

지정된 데이터베이스에서 모델을 추출하는 데 문제가 있는 경우

적용 대상