Share via


SqlServerStoreGenerationConvention Class

Definition

A convention that ensures that properties aren't configured to have a default value, as computed column or using a SqlServerValueGenerationStrategy at the same time.

public class SqlServerStoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.StoreGenerationConvention
type SqlServerStoreGenerationConvention = class
    inherit StoreGenerationConvention
Public Class SqlServerStoreGenerationConvention
Inherits StoreGenerationConvention
Inheritance
SqlServerStoreGenerationConvention

Remarks

See Model building conventions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.

Constructors

SqlServerStoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

Creates a new instance of SqlServerStoreGenerationConvention.

Properties

Dependencies

Dependencies for this service.

(Inherited from StoreGenerationConvention)
RelationalDependencies

Relational provider-specific dependencies for this service.

(Inherited from StoreGenerationConvention)

Methods

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called after a model is finalized.

(Inherited from StoreGenerationConvention)
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Called when a model is being finalized.

(Inherited from StoreGenerationConvention)
ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

Called after an annotation is changed on a property.

Validate(IConventionProperty, StoreObjectIdentifier)

Throws if there is conflicting store generation configuration for this property.

Validate(IConventionProperty, StoreObjectIdentifier)

Throws if there is conflicting store generation configuration for this property.

(Inherited from StoreGenerationConvention)
Validate(IConventionProperty)
Validate(IConventionProperty)

Throws if there is conflicting store generation configuration for this property.

(Inherited from StoreGenerationConvention)

Applies to