StoreGenerationConvention 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 ensures that properties aren't configured to have a default value and as computed column at the same time.
public class StoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
public class StoreGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IPropertyAnnotationChangedConvention
type StoreGenerationConvention = class
interface IPropertyAnnotationChangedConvention
interface IConvention
interface IModelFinalizedConvention
type StoreGenerationConvention = class
interface IPropertyAnnotationChangedConvention
interface IConvention
interface IModelFinalizingConvention
Public Class StoreGenerationConvention
Implements IModelFinalizedConvention, IPropertyAnnotationChangedConvention
Public Class StoreGenerationConvention
Implements IModelFinalizingConvention, IPropertyAnnotationChangedConvention
- Inheritance
-
StoreGenerationConvention
- Derived
- Implements
Remarks
See Model building conventions and EF Core value generation for more information and examples.
Constructors
StoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
Creates a new instance of StoreGenerationConvention. |
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. |
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) |
Throws if there is conflicting store generation configuration for this property. |
Applies to
Entity Framework