Bagikan melalui


ComplexTypeAttributeConvention Kelas

Definisi

Konvensi yang mengonfigurasi jenis yang memiliki ComplexTypeAttribute.

public class ComplexTypeAttributeConvention : Microsoft.EntityFrameworkCore.Metadata.Conventions.TypeAttributeConventionBase<System.ComponentModel.DataAnnotations.Schema.ComplexTypeAttribute>, Microsoft.EntityFrameworkCore.Metadata.Conventions.IComplexPropertyAddedConvention
type ComplexTypeAttributeConvention = class
    inherit TypeAttributeConventionBase<ComplexTypeAttribute>
    interface IComplexPropertyAddedConvention
    interface IConvention
Public Class ComplexTypeAttributeConvention
Inherits TypeAttributeConventionBase(Of ComplexTypeAttribute)
Implements IComplexPropertyAddedConvention
Warisan
ComplexTypeAttributeConvention
Penerapan

Keterangan

Lihat Konvensi pembuatan model untuk informasi dan contoh selengkapnya.

Konstruktor

ComplexTypeAttributeConvention(ProviderConventionSetBuilderDependencies)

Membuat instans baru .ComplexTypeAttributeConvention

Properti

Dependencies

Dependensi untuk layanan ini.

(Diperoleh dari TypeAttributeConventionBase<TAttribute>)

Metode

ProcessComplexPropertyAdded(IConventionComplexPropertyBuilder, IConventionContext<IConventionComplexPropertyBuilder>)

Dipanggil setelah properti kompleks ditambahkan ke objek seperti jenis.

ProcessComplexTypeAdded(IConventionComplexTypeBuilder, TAttribute, IConventionContext)

Dipanggil setelah jenis kompleks ditambahkan ke model jika memiliki atribut .

(Diperoleh dari TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, ComplexTypeAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Dipanggil setelah jenis entitas ditambahkan ke model jika memiliki atribut .

ProcessEntityTypeAdded(IConventionEntityTypeBuilder, IConventionContext<IConventionEntityTypeBuilder>)

Dipanggil setelah jenis entitas ditambahkan ke model.

(Diperoleh dari TypeAttributeConventionBase<TAttribute>)
ProcessEntityTypeAdded(IConventionEntityTypeBuilder, TAttribute, IConventionContext<IConventionEntityTypeBuilder>)

Dipanggil setelah jenis entitas ditambahkan ke model jika memiliki atribut .

(Diperoleh dari TypeAttributeConventionBase<TAttribute>)
ReplaceWithEntityType(IConventionComplexTypeBuilder, Nullable<Boolean>)

Mencoba mengganti jenis kompleks dengan jenis entitas.

(Diperoleh dari TypeAttributeConventionBase<TAttribute>)

Berlaku untuk