MutableEntityTypeExtensions.AddProperty Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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
Entity Framework
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro