CosmosValueGenerationConvention 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 store value generation as OnAdd on properties that are part of the primary key and not part of any foreign keys or were configured to have a database default value.
public class CosmosValueGenerationConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.ValueGenerationConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IEntityTypeAnnotationChangedConvention
type CosmosValueGenerationConvention = class
inherit ValueGenerationConvention
interface IEntityTypeAnnotationChangedConvention
interface IConvention
Public Class CosmosValueGenerationConvention
Inherits ValueGenerationConvention
Implements IEntityTypeAnnotationChangedConvention
- Inheritance
- Implements
Remarks
See Model building conventions and EF Core value generation for more information and examples.
Constructors
CosmosValueGenerationConvention(ProviderConventionSetBuilderDependencies) |
Creates a new instance of CosmosValueGenerationConvention. |
Properties
Dependencies |
Dependencies for this service. (Inherited from ValueGenerationConvention) |
Methods
Applies to
Entity Framework