DatabaseGeneratedAttributeConvention Sınıf

Tanım

Eğer belirtilirse veya kullanılarak OnAdd Identity belirtilirse, bir özelliği OnAddOrUpdate belirtilmiş gibi Computed Never None yapılandıran bir DatabaseGeneratedAttribute kural.

public class DatabaseGeneratedAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute>
type DatabaseGeneratedAttributeConvention = class
    inherit PropertyAttributeConventionBase<DatabaseGeneratedAttribute>
Public Class DatabaseGeneratedAttributeConvention
Inherits PropertyAttributeConventionBase(Of DatabaseGeneratedAttribute)
Devralma
DatabaseGeneratedAttributeConvention

Açıklamalar

Daha fazla bilgi için bkz. Model bina kuralları.

Oluşturucular

DatabaseGeneratedAttributeConvention(ProviderConventionSetBuilderDependencies)

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

Özellikler

Dependencies

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

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

Yöntemler

ProcessPropertyAdded(IConventionPropertyBuilder, DatabaseGeneratedAttribute, MemberInfo, IConventionContext)

İlişkili CLR özelliği veya alanında bir özniteliği olan varlık türüne bir özellik eklendikten sonra çağrılır.

ProcessPropertyAdded(IConventionPropertyBuilder, IConventionContext<IConventionPropertyBuilder>)

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

(Devralındığı yer: PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyAdded(IConventionPropertyBuilder, TAttribute, MemberInfo, IConventionContext)

İlişkili CLR özelliği veya alanı üzerinde bir özniteliği olan varlık türüne bir Özellik eklendikten sonra çağırılır.

(Devralındığı yer: PropertyAttributeConventionBase<TAttribute>)
ProcessPropertyFieldChanged(IConventionPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Bir özellik için yedekleme alanı değiştirildikten sonra çağırılır.

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

Şunlara uygulanır