CosmosValueGenerationConvention Class
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
See Model building conventions and EF Core value generation for more information and examples.
Cosmos |
Creates a new instance of CosmosValueGenerationConvention. |
Dependencies |
Dependencies for this service. (Inherited from ValueGenerationConvention) |
Proizvod | Verzije |
---|---|
Entity Framework Core | 6.0, 7.0, 8.0, 9.0 |
Povratne informacije o proizvodu Entity Framework
Entity Framework je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: