AzureSynapseDbContextOptionsBuilder.UseCompatibilityLevel(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定 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 關於相容性的文件。