MutableEntityTypeExtensions.AddProperty Метод

Определение

Перегрузки

AddProperty(IMutableEntityType, MemberInfo)

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

AddProperty(IMutableEntityType, PropertyInfo)

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

AddProperty(IMutableEntityType, String)

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

AddProperty(IMutableEntityType, String, Type)

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

AddProperty(IMutableEntityType, MemberInfo)

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

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.MemberInfo memberInfo);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, memberInfo As MemberInfo) As IMutableProperty

Параметры

entityType
IMutableEntityType

Тип сущности.

memberInfo
MemberInfo

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

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

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

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

AddProperty(IMutableEntityType, PropertyInfo)

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

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, propertyInfo As PropertyInfo) As IMutableProperty

Параметры

entityType
IMutableEntityType

Тип сущности, в который добавляется свойство.

propertyInfo
PropertyInfo

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

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

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

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

AddProperty(IMutableEntityType, String)

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

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, name As String) As IMutableProperty

Параметры

entityType
IMutableEntityType

Тип сущности.

name
String

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

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

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

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

AddProperty(IMutableEntityType, String, Type)

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

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name, Type propertyType);
static member AddProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddProperty (entityType As IMutableEntityType, name As String, propertyType As Type) As IMutableProperty

Параметры

entityType
IMutableEntityType

Тип сущности.

name
String

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

propertyType
Type

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

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

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

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