StoreGenerationConvention Sınıf

Tanım

Özelliklerin aynı anda varsayılan değere ve hesaplanan sütuna sahip olacak şekilde yapılandırılmamış olması için bir kural.

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
Devralma
StoreGenerationConvention
Türetilmiş
Uygulamalar

Açıklamalar

Daha fazla bilgi için bkz. EF Core oluşturma kuralları ve değer oluşturma.

Oluşturucular

StoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies)

StoreGenerationConvention öğesinin yeni bir örneğini oluşturur.

Özellikler

Dependencies

Bu hizmetin bağımlılıkları.

RelationalDependencies

Bu hizmet için ilişkisel sağlayıcıya özgü bağımlılıklar.

Yöntemler

ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Model son hale getirildikten sonra çağrılır.

ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)

Modelin son hale getirildikleri zaman çağrılır.

ProcessPropertyAnnotationChanged(IConventionPropertyBuilder, String, IConventionAnnotation, IConventionAnnotation, IConventionContext<IConventionAnnotation>)

Bir özellikte ek açıklama değiştirildikten sonra çağrılır.

Validate(IConventionProperty)

Bu özellik için çakışan depo oluşturma yapılandırması varsa throws.

Validate(IConventionProperty, StoreObjectIdentifier)

Bu özellik için çakışan depo oluşturma yapılandırması varsa throws.

Şunlara uygulanır