SqlServerModelBuilderExtensions.HasPerformanceLevel Method
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
- modelBuilder
- ModelBuilder
The model builder.
- performanceLevel
- String
The performance level of the database as a string literal.
The same builder instance so that multiple calls can be chained.
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.
Product | Versions |
---|---|
Entity Framework Core | 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: