SqlServerModelBuilderExtensions.HasServiceTier(ModelBuilder, String) 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 service tier (EDITION) for Azure SQL Database as a string literal.
public static Microsoft.EntityFrameworkCore.ModelBuilder HasServiceTier (this Microsoft.EntityFrameworkCore.ModelBuilder modelBuilder, string serviceTier);
static member HasServiceTier : Microsoft.EntityFrameworkCore.ModelBuilder * string -> Microsoft.EntityFrameworkCore.ModelBuilder
<Extension()>
Public Function HasServiceTier (modelBuilder As ModelBuilder, serviceTier As String) As ModelBuilder
Parameters
- modelBuilder
- ModelBuilder
The model builder.
- serviceTier
- String
The service tier 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