IMutableEntityType.AddProperty Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
AddProperty(String, Type, MemberInfo) |
Aggiunge una proprietà a questo tipo di entità. |
AddProperty(String, Type) |
Aggiunge una proprietà a questo tipo di entità. |
AddProperty(String, Type, Boolean) |
Aggiunge una proprietà a questa entità. |
AddProperty(MemberInfo) |
Aggiunge una proprietà a questo tipo di entità. |
AddProperty(String) |
Aggiunge una proprietà a questo tipo di entità. |
AddProperty(String, Type, MemberInfo)
Aggiunge una proprietà a questo tipo di entità.
public Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (string name, Type propertyType, System.Reflection.MemberInfo memberInfo);
public Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (string name, Type propertyType, System.Reflection.MemberInfo? memberInfo);
abstract member AddProperty : string * Type * System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Function AddProperty (name As String, propertyType As Type, memberInfo As MemberInfo) As IMutableProperty
Parametri
- name
- String
Nome della proprietà da aggiungere.
- propertyType
- Type
Tipo di valore che la proprietà conterrà.
- memberInfo
- MemberInfo
Membro del tipo CLR corrispondente o null
per una proprietà shadow.
È possibile usare un indicizzatore con un parametro e Object un String tipo restituito.
Restituisce
Proprietà appena creata.
Si applica a
AddProperty(String, Type)
Aggiunge una proprietà a questo tipo di entità.
public Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (string name, Type propertyType);
abstract member AddProperty : string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Function AddProperty (name As String, propertyType As Type) As IMutableProperty
Parametri
- name
- String
Nome della proprietà da aggiungere.
- propertyType
- Type
Tipo di valore che la proprietà conterrà.
Restituisce
Proprietà appena creata.
Si applica a
AddProperty(String, Type, Boolean)
Aggiunge una proprietà a questa entità.
public Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (string name, Type propertyType, bool shadow);
abstract member AddProperty : string * Type * bool -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Function AddProperty (name As String, propertyType As Type, shadow As Boolean) As IMutableProperty
Parametri
- name
- String
Nome della proprietà da aggiungere.
- propertyType
- Type
Tipo di valore che la proprietà conterrà.
- shadow
- Boolean
Indica se la proprietà è in stato shadow.
Restituisce
Proprietà appena creata.
Si applica a
AddProperty(MemberInfo)
Aggiunge una proprietà a questo tipo di entità.
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (System.Reflection.MemberInfo memberInfo);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")]
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (System.Reflection.MemberInfo memberInfo);
abstract member AddProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
override this.AddProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Currently used only in tests")>]
abstract member AddProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
override this.AddProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Overridable Function AddProperty (memberInfo As MemberInfo) As IMutableProperty
Parametri
- memberInfo
- MemberInfo
Membro corrispondente nella classe di entità.
Restituisce
Proprietà appena creata.
- Attributi
Si applica a
AddProperty(String)
Aggiunge una proprietà a questo tipo di entità.
public Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddProperty (string name);
abstract member AddProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
Public Function AddProperty (name As String) As IMutableProperty
Parametri
- name
- String
Nome della proprietà da aggiungere.
Restituisce
Proprietà appena creata.
Si applica a
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per