Aracılığıyla paylaş


DatabaseGeneratedAttributeConvention Sınıf

Tanım

Bir özelliği belirtildiyse, belirtildiyse Computed veya Never kullanılarak belirtildiyse None olarak OnAddIdentity yapılandıran bir DatabaseGeneratedAttributekural. OnAddOrUpdate

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 ve örnek için bkz. Model oluşturma 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

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Tür benzeri bir nesneye karmaşık bir özellik eklendikten sonra çağrılır.

(Devralındığı yer: PropertyAttributeConventionBase<TAttribute>)
ProcessComplexPropertyFieldChanged(IConventionComplexPropertyBuilder, FieldInfo, FieldInfo, IConventionContext<FieldInfo>)

Karmaşık bir özelliğin yedekleme alanı değiştirildikten sonra çağrılır.

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

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

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

Varlık türüne bir özellik eklendikten sonra, ilişkili CLR özelliğinde veya alanında bir öznitelikle ç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)

Varlık türüne bir özellik eklendikten sonra, ilişkili CLR özelliğinde veya alanında bir öznitelikle çağrılır.

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

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

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

Şunlara uygulanır