Share via


CosmosModelBuilderExtensions.CanSetThroughput 메서드

정의

지정된 처리량을 설정할 수 있는지 여부를 나타내는 값을 반환합니다.

public static bool CanSetThroughput (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, int? throughput, bool autoscale, bool fromDataAnnotation = false);
static member CanSetThroughput : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * Nullable<int> * bool * bool -> bool
<Extension()>
Public Function CanSetThroughput (modelBuilder As IConventionModelBuilder, throughput As Nullable(Of Integer), autoscale As Boolean, Optional fromDataAnnotation As Boolean = false) As Boolean

매개 변수

modelBuilder
IConventionModelBuilder

모델 작성기입니다.

throughput
Nullable<Int32>

설정할 처리량입니다.

autoscale
Boolean

자동 크기 조정을 사용할 수 있는지 여부입니다.

fromDataAnnotation
Boolean

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

반환

true 지정된 컨테이너 이름을 기본값으로 설정할 수 있으면 입니다.

설명

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

적용 대상