Condividi tramite


MutableEntityTypeExtensions.AddProperty Metodo

Definizione

Overload

AddProperty(IMutableEntityType, MemberInfo)

Aggiunge una proprietà a questo tipo di entità.

AddProperty(IMutableEntityType, PropertyInfo)

Aggiunge una proprietà a questa entità.

AddProperty(IMutableEntityType, String)

Aggiunge una proprietà a questo tipo di entità.

AddProperty(IMutableEntityType, String, Type)

Aggiunge una proprietà a questo tipo di entità.

AddProperty(IMutableEntityType, MemberInfo)

Aggiunge una proprietà a questo tipo di entità.

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

Parametri

entityType
IMutableEntityType

Tipo di entità.

memberInfo
MemberInfo

Membro corrispondente nella classe di entità.

Restituisce

Proprietà appena creata.

Si applica a

AddProperty(IMutableEntityType, PropertyInfo)

Aggiunge una proprietà a questa entità.

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

Parametri

entityType
IMutableEntityType

Tipo di entità a cui aggiungere la proprietà.

propertyInfo
PropertyInfo

Proprietà corrispondente nella classe di entità.

Restituisce

Proprietà appena creata.

Si applica a

AddProperty(IMutableEntityType, String)

Aggiunge una proprietà a questo tipo di entità.

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

Parametri

entityType
IMutableEntityType

Tipo di entità.

name
String

Nome della proprietà da aggiungere.

Restituisce

Proprietà appena creata.

Si applica a

AddProperty(IMutableEntityType, String, Type)

Aggiunge una proprietà a questo tipo di entità.

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

Parametri

entityType
IMutableEntityType

Tipo di entità.

name
String

Nome della proprietà da aggiungere.

propertyType
Type

Tipo di valore che la proprietà conterrà.

Restituisce

Proprietà appena creata.

Si applica a