SqlServerValueGenerationStrategyConvention Class
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.
A convention that configures the default model SqlServerValueGenerationStrategy as IdentityColumn.
public class SqlServerValueGenerationStrategyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
public class SqlServerValueGenerationStrategyConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelInitializedConvention
type SqlServerValueGenerationStrategyConvention = class
interface IModelInitializedConvention
interface IConvention
interface IModelFinalizedConvention
type SqlServerValueGenerationStrategyConvention = class
interface IModelInitializedConvention
interface IConvention
interface IModelFinalizingConvention
Public Class SqlServerValueGenerationStrategyConvention
Implements IModelFinalizedConvention, IModelInitializedConvention
Public Class SqlServerValueGenerationStrategyConvention
Implements IModelFinalizingConvention, IModelInitializedConvention
- Inheritance
-
SqlServerValueGenerationStrategyConvention
- Implements
Remarks
See Model building conventions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Constructors
SqlServerValueGenerationStrategyConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
Creates a new instance of SqlServerValueGenerationStrategyConvention. |
Properties
Dependencies |
Dependencies for this service. |
RelationalDependencies |
Relational provider-specific dependencies for this service. |
Methods
ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Called after a model is finalized. |
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Called when a model is being finalized. |
ProcessModelInitialized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Called after a model is initialized. |
Applies to
Entity Framework