語言

AzureSynapseDbContextOptionsBuilder.UseCompatibilityLevel(Int32) 方法

定義

設定 EF Core 與資料庫互動時會使用的 Azure Synapse 相容性等級。 這讓 EF Core 能夠與舊版(或更新版)的 Azure Synapse 相容。 預設為 30。

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

參數

compatibilityLevel
Int32

資料庫的相容性等級。

傳回

備註

更多資訊與範例請參閱使用 DbContextOptions 及 Azure Synapse 關於相容性的文件。

適用於