Share via


SqlServerModelBuilderExtensions.HasPerformanceLevelSql メソッド

定義

オーバーロード

HasPerformanceLevelSql(ModelBuilder, String)

Azure SQL Database のパフォーマンス レベル (SERVICE_OBJECTIVE) を SQL 式として構成します。

HasPerformanceLevelSql(IConventionModelBuilder, String, Boolean)

Azure SQL Database のパフォーマンス レベル (SERVICE_OBJECTIVE) の構成を試みます。

HasPerformanceLevelSql(ModelBuilder, String)

Azure SQL Database のパフォーマンス レベル (SERVICE_OBJECTIVE) を SQL 式として構成します。

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

パラメーター

modelBuilder
ModelBuilder

モデル ビルダー。

performanceLevel
String

データベースのパフォーマンス レベルの式。

戻り値

複数の呼び出しをチェーンできるように、同じビルダー インスタンス。

注釈

サポートされている値については、Azure SQL Database のドキュメントを参照してください。

詳細と例については、「エンティティの種類とリレーションシップのモデリング」および「EF Core を使用したSQL ServerデータベースとAzure SQLデータベースへのアクセス」を参照してください。

適用対象

HasPerformanceLevelSql(IConventionModelBuilder, String, Boolean)

Azure SQL Database のパフォーマンス レベル (SERVICE_OBJECTIVE) の構成を試みます。

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

パラメーター

modelBuilder
IConventionModelBuilder

モデル ビルダー。

performanceLevel
String

データベースのパフォーマンス レベルの式。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

構成が適用された場合は同じビルダー インスタンス。 null それ以外の場合は 。

注釈

サポートされている値については、Azure SQL Database のドキュメントを参照してください。

詳細と例については、「エンティティの種類とリレーションシップのモデリング」および「EF Core を使用したSQL ServerデータベースとAzure SQLデータベースへのアクセス」を参照してください。

適用対象