StoreGenerationConvention Sınıf
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Özelliklerin aynı anda bir varsayılan değere ve hesaplanan sütuna sahip olacak şekilde yapılandırılmamasını sağlayan 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 ve örnek için bkz. Model oluşturma kuralları ve EF Core değer oluşturma .
Oluşturucular
StoreGenerationConvention(ProviderConventionSetBuilderDependencies, RelationalConventionSetBuilderDependencies) |
StoreGenerationConvention öğesinin yeni bir örneğini oluşturur. |
Özellikler
Dependencies |
Bu hizmet için 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 sonlandırıldıktan sonra çağrılır. |
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Model sonlandırılırken ç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 oluşturur. |
Validate(IConventionProperty, StoreObjectIdentifier) |
Bu özellik için çakışan depo oluşturma yapılandırması varsa oluşturur. |
Şunlara uygulanır
Entity Framework