Delen via


SqlServerModelBuilderExtensions.HasPerformanceLevel Method

Definition

Configures the performance level (SERVICE_OBJECTIVE) for Azure SQL Database as a string literal.

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

Parameters

modelBuilder
ModelBuilder

The model builder.

performanceLevel
String

The performance level of the database as a string literal.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Azure SQL Database documentation for supported values.

See Modeling entity types and relationships, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Applies to