Sdílet prostřednictvím


MutableEntityTypeExtensions.AddProperty Metoda

Definice

Přetížení

AddProperty(IMutableEntityType, MemberInfo)

Přidá vlastnost k tomuto typu entity.

AddProperty(IMutableEntityType, PropertyInfo)

Přidá vlastnost do této entity.

AddProperty(IMutableEntityType, String)

Přidá vlastnost k tomuto typu entity.

AddProperty(IMutableEntityType, String, Type)

Přidá vlastnost k tomuto typu entity.

AddProperty(IMutableEntityType, MemberInfo)

Přidá vlastnost k tomuto typu entity.

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

Parametry

entityType
IMutableEntityType

Typ entity.

memberInfo
MemberInfo

Odpovídající člen třídy entity.

Návraty

Nově vytvořená vlastnost.

Platí pro

AddProperty(IMutableEntityType, PropertyInfo)

Přidá vlastnost do této entity.

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

Parametry

entityType
IMutableEntityType

Typ entity, do které se má vlastnost přidat.

propertyInfo
PropertyInfo

Odpovídající vlastnost v třídě entity.

Návraty

Nově vytvořená vlastnost.

Platí pro

AddProperty(IMutableEntityType, String)

Přidá vlastnost k tomuto typu entity.

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

Parametry

entityType
IMutableEntityType

Typ entity.

name
String

Název vlastnosti, která se má přidat.

Návraty

Nově vytvořená vlastnost.

Platí pro

AddProperty(IMutableEntityType, String, Type)

Přidá vlastnost k tomuto typu entity.

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

Parametry

entityType
IMutableEntityType

Typ entity.

name
String

Název vlastnosti, která se má přidat.

propertyType
Type

Typ hodnoty, která bude vlastnost obsahovat.

Návraty

Nově vytvořená vlastnost.

Platí pro