Share via


SqlServerModelBuilderExtensions.HasPerformanceLevelSql Yöntem

Tanım

Aşırı Yüklemeler

HasPerformanceLevelSql(ModelBuilder, String)

Azure SQL Veritabanı için performans düzeyini (SERVICE_OBJECTIVE) SQL ifadesi olarak yapılandırılır.

HasPerformanceLevelSql(IConventionModelBuilder, String, Boolean)

Azure SQL Veritabanı için performans düzeyini (SERVICE_OBJECTIVE) yapılandırmaya çalışır.

HasPerformanceLevelSql(ModelBuilder, String)

Azure SQL Veritabanı için performans düzeyini (SERVICE_OBJECTIVE) SQL ifadesi olarak yapılandırılır.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasPerformanceLevelSql (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string performanceLevel);
static member HasPerformanceLevelSql : Microsoft.EntityFrameworkCore.ModelBuilder * string -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasPerformanceLevelSql (modelBuilder As ModelBuilder, performanceLevel As String) As ModelBuilder

Parametreler

modelBuilder
ModelBuilder

Model oluşturucu.

performanceLevel
String

Veritabanının performans düzeyi için ifade.

Döndürülenler

Birden çok çağrının zincirlenebilmesi için aynı oluşturucu örneği.

Açıklamalar

Desteklenen değerler için Azure SQL Veritabanı belgelerine bakın.

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

Şunlara uygulanır

HasPerformanceLevelSql(IConventionModelBuilder, String, Boolean)

Azure SQL Veritabanı için performans düzeyini (SERVICE_OBJECTIVE) yapılandırmaya çalışır.

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

Parametreler

modelBuilder
IConventionModelBuilder

Model oluşturucu.

performanceLevel
String

Veritabanının performans düzeyi için ifade.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Yapılandırma uygulandıysa aynı oluşturucu örneği, null aksi takdirde.

Açıklamalar

Desteklenen değerler için Azure SQL Veritabanı belgelerine bakın.

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

Şunlara uygulanır