Language

AzureSqlDbContextOptionsBuilder.UseCompatibilityLevel(Int32) メソッド

定義

EF Core がデータベースを操作するときに使用するAzure SQL互換性レベルを設定します。 これにより、EF Core を以前の (またはそれ以降の) バージョンのAzure SQLで動作するように構成できます。 既定値は 170 です。

public virtual Microsoft.EntityFrameworkCore.Infrastructure.AzureSqlDbContextOptionsBuilder UseCompatibilityLevel(int compatibilityLevel);
abstract member UseCompatibilityLevel : int -> Microsoft.EntityFrameworkCore.Infrastructure.AzureSqlDbContextOptionsBuilder
override this.UseCompatibilityLevel : int -> Microsoft.EntityFrameworkCore.Infrastructure.AzureSqlDbContextOptionsBuilder
Public Overridable Function UseCompatibilityLevel (compatibilityLevel As Integer) As AzureSqlDbContextOptionsBuilder

パラメーター

compatibilityLevel
Int32

データベースに使用する互換性レベル。

戻り値

注釈

詳細と例については、DbContextOptions の使用と互換性レベルに関するAzure SQLドキュメントを参照してください。

適用対象