Udostępnij za pośrednictwem


IConventionTypeBase.AddComplexProperty Metoda

Definicja

Przeciążenia

AddComplexProperty(String, Boolean, Boolean)

Dodaje właściwość do tego typu.

AddComplexProperty(MemberInfo, String, Boolean, Boolean)

Dodaje właściwość do tego typu.

AddComplexProperty(String, Type, Type, String, Boolean, Boolean)

Dodaje właściwość do tego typu.

AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean, Boolean)

Dodaje właściwość do tego typu.

AddComplexProperty(String, Boolean, Boolean)

Dodaje właściwość do tego typu.

public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (name As String, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

Parametry

name
String

Nazwa właściwości do dodania.

collection
Boolean

Wskazuje, czy właściwość reprezentuje kolekcję.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Nowo utworzona właściwość.

Dotyczy

AddComplexProperty(MemberInfo, String, Boolean, Boolean)

Dodaje właściwość do tego typu.

[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (System.Reflection.MemberInfo memberInfo, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")>]
abstract member AddComplexProperty : System.Reflection.MemberInfo * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
override this.AddComplexProperty : System.Reflection.MemberInfo * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Overridable Function AddComplexProperty (memberInfo As MemberInfo, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

Parametry

memberInfo
MemberInfo

Odpowiedni element członkowski w typie.

complexTypeName
String

Nazwa typu złożonego.

collection
Boolean

Wskazuje, czy właściwość reprezentuje kolekcję.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Nowo utworzona właściwość.

Atrybuty

Dotyczy

AddComplexProperty(String, Type, Type, String, Boolean, Boolean)

Dodaje właściwość do tego typu.

public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, Type propertyType, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * Type * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (name As String, propertyType As Type, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

Parametry

name
String

Nazwa właściwości do dodania.

propertyType
Type

Typ właściwości.

complexType
Type

Typ wartości, która będzie przechowywana przez właściwość.

complexTypeName
String

Nazwa typu złożonego.

collection
Boolean

Wskazuje, czy właściwość reprezentuje kolekcję.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Nowo utworzona właściwość.

Dotyczy

AddComplexProperty(String, Type, MemberInfo, Type, String, Boolean, Boolean)

Dodaje właściwość do tego typu.

public Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty? AddComplexProperty (string name, Type propertyType, System.Reflection.MemberInfo memberInfo, Type complexType, string? complexTypeName = default, bool collection = false, bool fromDataAnnotation = false);
abstract member AddComplexProperty : string * Type * System.Reflection.MemberInfo * Type * string * bool * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionComplexProperty
Public Function AddComplexProperty (name As String, propertyType As Type, memberInfo As MemberInfo, complexType As Type, Optional complexTypeName As String = Nothing, Optional collection As Boolean = false, Optional fromDataAnnotation As Boolean = false) As IConventionComplexProperty

Parametry

name
String

Nazwa właściwości do dodania.

propertyType
Type

Typ właściwości.

memberInfo
MemberInfo

Odpowiedni element członkowski typu CLR.

Można użyć indeksatora z parametrem i Object typem zwrotnymString.

complexType
Type

Typ wartości, która będzie przechowywana przez właściwość.

complexTypeName
String

Nazwa typu złożonego.

collection
Boolean

Wskazuje, czy właściwość reprezentuje kolekcję.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Nowo utworzona właściwość.

Dotyczy