SqlServerModelBuilderExtensions.CanSetPerformanceLevelSql(IConventionModelBuilder, String, Boolean) Yöntem

Tanım

Verilen değerin veritabanının performans düzeyi olarak ayar olup olmadığını belirten bir değer döndürür.

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

Parametreler

modelBuilder
IConventionModelBuilder

Model oluşturucu.

performanceLevel
String

Veritabanı ifadesinin performans düzeyi.

fromDataAnnotation
Boolean

Yapılandırmanın veri ek açıklaması kullanılarak belirtilmemiş olup olmadığını gösterir.

Döndürülenler

Boolean

true verilen değerin veritabanının performans düzeyi olarak ayarlansa.

Açıklamalar

Daha fazla bilgi için bkz.Varlık türlerini ve ilişkilerini modelleme ve SQL Server ile SQL Azure veritabanlarına EF Core erişim.

Şunlara uygulanır