MutableEntityTypeExtensions.AddProperty Methode

Definition

Überlädt

AddProperty(IMutableEntityType, MemberInfo)

Fügt diesem Entitätstyp eine Eigenschaft hinzu.

AddProperty(IMutableEntityType, PropertyInfo)

Fügt dieser Entität eine Eigenschaft hinzu.

AddProperty(IMutableEntityType, String)

Fügt diesem Entitätstyp eine Eigenschaft hinzu.

AddProperty(IMutableEntityType, String, Type)

Fügt diesem Entitätstyp eine Eigenschaft hinzu.

AddProperty(IMutableEntityType, MemberInfo)

Fügt diesem Entitätstyp eine Eigenschaft hinzu.

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

Parameter

entityType
IMutableEntityType

Der Entitätstyp.

memberInfo
MemberInfo

Das entsprechende Element der Entitätsklasse.

Gibt zurück

Die neu erstellte Eigenschaft.

Gilt für:

AddProperty(IMutableEntityType, PropertyInfo)

Fügt dieser Entität eine Eigenschaft hinzu.

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

Parameter

entityType
IMutableEntityType

Der Entitätstyp, dem die -Eigenschaft hinzugefügt werden soll.

propertyInfo
PropertyInfo

Die entsprechende Eigenschaft in der Entitätsklasse.

Gibt zurück

Die neu erstellte Eigenschaft.

Gilt für:

AddProperty(IMutableEntityType, String)

Fügt diesem Entitätstyp eine Eigenschaft hinzu.

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

Parameter

entityType
IMutableEntityType

Der Entitätstyp.

name
String

Der Name der hinzuzufügenden Eigenschaft.

Gibt zurück

Die neu erstellte Eigenschaft.

Gilt für:

AddProperty(IMutableEntityType, String, Type)

Fügt diesem Entitätstyp eine Eigenschaft hinzu.

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

Parameter

entityType
IMutableEntityType

Der Entitätstyp.

name
String

Der Name der hinzuzufügenden Eigenschaft.

propertyType
Type

Der Werttyp, den die Eigenschaft enthält.

Gibt zurück

Die neu erstellte Eigenschaft.

Gilt für: