SqlServerModelBuilderExtensions.HasPerformanceLevelSql Method

Definition

Overloads

HasPerformanceLevelSql(ModelBuilder, String)

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

See Azure SQL Database documentation for supported values.

HasPerformanceLevelSql(IConventionModelBuilder, String, Boolean)

Attempts to configure the performance level (SERVICE_OBJECTIVE) for Azure SQL Database.

See Azure SQL Database documentation for supported values.

HasPerformanceLevelSql(ModelBuilder, String)

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

See Azure SQL Database documentation for supported values.

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

Parameters

modelBuilder
ModelBuilder

The model builder.

performanceLevel
String

The expression for the performance level of the database.

Returns

ModelBuilder

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

Remarks

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

Applies to

HasPerformanceLevelSql(IConventionModelBuilder, String, Boolean)

Attempts to configure the performance level (SERVICE_OBJECTIVE) for Azure SQL Database.

See Azure SQL Database documentation for supported values.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder HasPerformanceLevelSql (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string performanceLevel, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder? HasPerformanceLevelSql (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder modelBuilder, string? performanceLevel, bool fromDataAnnotation = false);
static member HasPerformanceLevelSql : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionModelBuilder
<Extension()>
Public Function HasPerformanceLevelSql (modelBuilder As IConventionModelBuilder, performanceLevel As String, Optional fromDataAnnotation As Boolean = false) As IConventionModelBuilder

Parameters

modelBuilder
IConventionModelBuilder

The model builder.

performanceLevel
String

The expression for the performance level of the database.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

IConventionModelBuilder

The same builder instance if the configuration was applied, null otherwise.

Remarks

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

Applies to