Dil

DatabaseGeneratedAttributeConvention Sınıf

Tanım

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

[System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })]
public class DatabaseGeneratedAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute>
public class DatabaseGeneratedAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.PropertyAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedAttribute>
[<System.Runtime.CompilerServices.Nullable(new System.Byte[] { 0, 1 })>]
type DatabaseGeneratedAttributeConvention = class
    inherit PropertyAttributeConventionBase<DatabaseGeneratedAttribute>
type DatabaseGeneratedAttributeConvention = class
    inherit PropertyAttributeConventionBase<DatabaseGeneratedAttribute>
Public Class DatabaseGeneratedAttributeConvention
Inherits PropertyAttributeConventionBase(Of DatabaseGeneratedAttribute)
Devralma
DatabaseGeneratedAttributeConvention
Özellikler

Açıklamalar

Daha fazla bilgi ve örnek için bkz. Model oluşturma kuralları .

Oluşturucular

Veri Akışı Adı Description
DatabaseGeneratedAttributeConvention(ProviderConventionSetBuilderDependencies)

öğesinin yeni bir örneğini DatabaseGeneratedAttributeConventionoluşturur.

Özellikler

Veri Akışı Adı Description
Dependencies

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

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

Yöntemler

Veri Akışı Adı Description
ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Karmaşık bir özellik tür benzeri bir nesneye 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)

İlişkili CLR özelliğinde veya alanında ö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ğinde veya alanında ö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 özelliğin yedekleme alanı değiştirildikten sonra çağrılır.

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

Şunlara uygulanır