RequiredNavigationAttributeConvention Sınıf

Tanım

RequiredAttributeGezinti özelliğinde sorumlu varlık türüne uygulanırsa, ilişkinin asıl tarafını gereken şekilde yapılandıran bir kural.

public class RequiredNavigationAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.NavigationAttributeConventionBase<System.ComponentModel.DataAnnotations.RequiredAttribute>
type RequiredNavigationAttributeConvention = class
    inherit NavigationAttributeConventionBase<RequiredAttribute>
Public Class RequiredNavigationAttributeConvention
Inherits NavigationAttributeConventionBase(Of RequiredAttribute)
Devralma
RequiredNavigationAttributeConvention

Açıklamalar

Daha fazla bilgi için bkz. model yapı kuralları .

Oluşturucular

RequiredNavigationAttributeConvention(ProviderConventionSetBuilderDependencies)

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

Özellikler

Dependencies

Bu hizmet için bağımlılıklar.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)

Yöntemler

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Modele bir varlık türü eklendikten sonra çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Bir varlık türü modele eklendikten sonra özniteliği olan her gezinti özelliği için çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, IConventionContext<IConventionEntityType>)

Bir varlık türünün temel türü değiştiğinde çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeBaseTypeChanged(IConventionEntityTypeBuilder, IConventionEntityType, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Bir varlık türünün temel türü değiştirildikten sonra özniteliği olan her gezinti özelliği için çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeIgnored(IConventionModelBuilder, String, Type, IConventionContext<String>)

Bir varlık türü yok sayılırsa çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeIgnored(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<String>)

Bir varlık türü yoksayıldıktan sonra özniteliği olan her gezinti özelliği için çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, MemberInfo, Type, TAttribute, IConventionContext<String>)

Özniteliği olan bir gezinti özelliği yoksayılırsa çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeMemberIgnored(IConventionEntityTypeBuilder, String, IConventionContext<String>)

Bir varlık türü üyesi yoksayılırsa çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, IConventionContext<IConventionEntityType>)

Bir varlık türü modelden kaldırıldıktan sonra çağrılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, IConventionEntityType, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Bir varlık türü kaldırıldıktan sonra özniteliği olan her gezinti özelliği için çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessEntityTypeRemoved(IConventionModelBuilder, Type, MemberInfo, Type, TAttribute, IConventionContext<IConventionEntityType>)

Bir varlık türü kaldırıldıktan sonra özniteliği olan her gezinti özelliği için çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IConventionContext<IConventionForeignKeyBuilder>)

Yabancı anahtarın asıl sonu değiştirildikten sonra çağrılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IEnumerable<RequiredAttribute>, IEnumerable<RequiredAttribute>, IConventionContext<IConventionForeignKeyBuilder>)
ProcessForeignKeyPrincipalEndChanged(IConventionForeignKeyBuilder, IEnumerable<TAttribute>, IEnumerable<TAttribute>, IConventionContext<IConventionForeignKeyBuilder>)

Yabancı anahtarın asıl sonu değiştirildikten sonra çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, IConventionContext<IConventionNavigationBuilder>)

Varlık türüne bir gezinti eklendikten sonra çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionNavigationBuilder, RequiredAttribute, IConventionContext<IConventionNavigationBuilder>)
ProcessNavigationAdded(IConventionNavigationBuilder, TAttribute, IConventionContext<IConventionNavigationBuilder>)

Özniteliği olan bir gezinti özelliği bir varlık türüne eklendikten sonra çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, IConventionContext<IConventionNavigation>)

Varlık türüne bir gezinti eklendikten sonra çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, RequiredAttribute, IConventionContext<IConventionNavigation>)

Özniteliği olan bir gezinti özelliği bir varlık türüne eklendikten sonra çağırılır.

ProcessNavigationAdded(IConventionRelationshipBuilder, IConventionNavigation, TAttribute, IConventionContext<IConventionNavigation>)

Özniteliği olan bir gezinti özelliği bir varlık türüne eklendikten sonra çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, IConventionContext<IConventionSkipNavigationBuilder>)

Bir atlama gezintisi varlık türüne eklendikten sonra çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, RequiredAttribute, IConventionContext<IConventionSkipNavigationBuilder>)
ProcessSkipNavigationAdded(IConventionSkipNavigationBuilder, TAttribute, IConventionContext<IConventionSkipNavigationBuilder>)

Özniteliği olan bir atlama gezintisi özelliği bir varlık türüne eklendikten sonra çağırılır.

(Devralındığı yer: NavigationAttributeConventionBase<TAttribute>)

Şunlara uygulanır