SqlServerModelBuilderExtensions.HasPerformanceLevel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework