SqlServerModelBuilderExtensions.HasPerformanceLevel(ModelBuilder, String) Method

Definition

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

See Azure SQL Database documentation for supported values.

public static Microsoft.EntityFrameworkCore.ModelBuilder HasPerformanceLevel (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string performanceLevel);
static member HasPerformanceLevel : Microsoft.EntityFrameworkCore.ModelBuilder * string -> Microsoft.EntityFrameworkCore.ModelBuilder

Parameters

modelBuilder
ModelBuilder

The model builder.

performanceLevel
String

The performance level of the database as a string literal.

Returns

ModelBuilder

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

Applies to