ModelCleanupConvention 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.
Yalnızca model oluşturma sırasında kullanılan tüm durumları kaldıran bir kural.
public class ModelCleanupConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizedConvention
public class ModelCleanupConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
public class ModelCleanupConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.IForeignKeyRemovedConvention, Microsoft.EntityFrameworkCore.Metadata.Conventions.IModelFinalizingConvention
type ModelCleanupConvention = class
interface IModelFinalizedConvention
interface IConvention
type ModelCleanupConvention = class
interface IModelFinalizingConvention
interface IConvention
type ModelCleanupConvention = class
interface IForeignKeyRemovedConvention
interface IConvention
interface IModelFinalizingConvention
Public Class ModelCleanupConvention
Implements IModelFinalizedConvention
Public Class ModelCleanupConvention
Implements IModelFinalizingConvention
Public Class ModelCleanupConvention
Implements IForeignKeyRemovedConvention, IModelFinalizingConvention
- Devralma
-
ModelCleanupConvention
- Uygulamalar
Açıklamalar
Daha fazla bilgi ve örnek için bkz. Model oluşturma kuralları .
Oluşturucular
| ModelCleanupConvention(ProviderConventionSetBuilderDependencies) |
ModelCleanupConvention öğesinin yeni bir örneğini oluşturur. |
Özellikler
| Dependencies |
Bu hizmet için bağımlılıklar. |
Yöntemler
| ProcessForeignKeyRemoved(IConventionEntityTypeBuilder, IConventionForeignKey, IConventionContext<IConventionForeignKey>) |
Yabancı anahtar kaldırıldıktan sonra çağrılır. |
| ProcessModelFinalized(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Bir model sonlandırıldıktan sonra çağrılır. |
| ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>) |
Bir model sonlandırılırken çağrılır. |