Share via


SqlServerModelBuilderExtensions.CanSetPerformanceLevelSql 메서드

정의

지정된 값을 데이터베이스의 성능 수준으로 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

public static bool CanSetPerformanceLevelSql (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string performanceLevel, bool fromDataAnnotation = false);
public static bool CanSetPerformanceLevelSql (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string? performanceLevel, bool fromDataAnnotation = false);
static member CanSetPerformanceLevelSql : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * bool -> bool
<Extension()>
Public Function CanSetPerformanceLevelSql (modelBuilder As IConventionModelBuilder, performanceLevel As String, Optional fromDataAnnotation As Boolean = false) As Boolean

매개 변수

modelBuilder
IConventionModelBuilder

모델 작성기입니다.

performanceLevel
String

데이터베이스 식의 성능 수준입니다.

fromDataAnnotation
Boolean

데이터 주석을 사용하여 구성을 지정했는지 여부를 나타냅니다.

반환

true 지정된 값을 데이터베이스의 성능 수준으로 설정할 수 있으면 입니다.

설명

자세한 내용과 예제는 엔터티 형식 및 관계 모델링EF Core를 사용하여 SQL Server 및 Azure SQL 데이터베이스 액세스를 참조하세요.

적용 대상