IMutableTypeBase.AddComplexProperty Метод

Определение

Перегрузки

AddComplexProperty(String, Boolean)

Добавляет к этому типу сложное свойство.

AddComplexProperty(MemberInfo, String, Boolean)

Добавляет к этому типу сложное свойство.

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

Добавляет к этому типу сложное свойство.

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

Добавляет к этому типу сложное свойство.

AddComplexProperty(String, Boolean)

Добавляет к этому типу сложное свойство.

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

Параметры

name
String

Имя добавляемого свойства.

collection
Boolean

Указывает, представляет ли свойство коллекцию.

Возвращаемое значение

Только что созданное свойство.

Применяется к

AddComplexProperty(MemberInfo, String, Boolean)

Добавляет к этому типу сложное свойство.

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

Параметры

memberInfo
MemberInfo

Соответствующий член в классе .

complexTypeName
String

Имя сложного типа.

collection
Boolean

Указывает, представляет ли свойство коллекцию.

Возвращаемое значение

Только что созданное свойство.

Атрибуты

Применяется к

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

Добавляет к этому типу сложное свойство.

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

Параметры

name
String

Имя добавляемого свойства.

propertyType
Type

Тип свойства.

complexType
Type

Тип значения, которое будет храниться в свойстве.

complexTypeName
String

Имя сложного типа.

collection
Boolean

Указывает, представляет ли свойство коллекцию.

Возвращаемое значение

Только что созданное свойство.

Применяется к

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

Добавляет к этому типу сложное свойство.

public Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty AddComplexProperty (string name, Type propertyType, System.Reflection.MemberInfo memberInfo, Type complexType, string? complexTypeName = default, bool collection = false);
abstract member AddComplexProperty : string * Type * System.Reflection.MemberInfo * Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableComplexProperty
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) As IMutableComplexProperty

Параметры

name
String

Имя добавляемого свойства.

propertyType
Type

Тип свойства.

memberInfo
MemberInfo

Соответствующий элемент типа CLR.

Можно использовать индексатор с параметром String и Object типом возвращаемого значения.

complexType
Type

Тип значения, которое будет храниться в свойстве.

complexTypeName
String

Имя сложного типа.

collection
Boolean

Указывает, представляет ли свойство коллекцию.

Возвращаемое значение

Только что созданное свойство.

Применяется к