SqlServerModelBuilderExtensions.HasPerformanceLevel 方法

定義

將Azure SQL資料庫的效能層級設定為字串常值 (SERVICE_OBJECTIVE) 。

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

參數

modelBuilder
ModelBuilder

模型產生器。

performanceLevel
String

作為字串常值的資料庫效能等級。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需支援的值,請參閱Azure SQL資料庫檔案。

如需詳細資訊和範例,請參閱使用 EF Core建立實體類型和關聯性的模型化,以及使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於