IConventionEntityTypeBuilder.GetOrCreateProperties 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
GetOrCreateProperties(IEnumerable<MemberInfo>, Boolean) |
Restituisce le proprietà esistenti corrispondenti ai membri specificati o le crea. |
GetOrCreateProperties(IReadOnlyList<String>, Boolean) |
Restituisce le proprietà esistenti con i nomi specificati o le crea se vengono trovati membri CLR corrispondenti. |
GetOrCreateProperties(IEnumerable<MemberInfo>, Boolean)
Restituisce le proprietà esistenti corrispondenti ai membri specificati o le crea.
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> GetOrCreateProperties (System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo> memberInfos, bool fromDataAnnotation = false);
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? GetOrCreateProperties (System.Collections.Generic.IEnumerable<System.Reflection.MemberInfo>? memberInfos, bool fromDataAnnotation = false);
abstract member GetOrCreateProperties : seq<System.Reflection.MemberInfo> * bool -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
Public Function GetOrCreateProperties (memberInfos As IEnumerable(Of MemberInfo), Optional fromDataAnnotation As Boolean = false) As IReadOnlyList(Of IConventionProperty)
Parametri
- memberInfos
- IEnumerable<MemberInfo>
Membri del tipo.
- fromDataAnnotation
- Boolean
Indica se la configurazione è stata specificata utilizzando un'annotazione dati.
Restituisce
Elenco di proprietà se presenti nel tipo di entità; in caso contrario, null
.
Si applica a
GetOrCreateProperties(IReadOnlyList<String>, Boolean)
Restituisce le proprietà esistenti con i nomi specificati o le crea se vengono trovati membri CLR corrispondenti.
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty> GetOrCreateProperties (System.Collections.Generic.IReadOnlyList<string> propertyNames, bool fromDataAnnotation = false);
public System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>? GetOrCreateProperties (System.Collections.Generic.IReadOnlyList<string>? propertyNames, bool fromDataAnnotation = false);
abstract member GetOrCreateProperties : System.Collections.Generic.IReadOnlyList<string> * bool -> System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IConventionProperty>
Public Function GetOrCreateProperties (propertyNames As IReadOnlyList(Of String), Optional fromDataAnnotation As Boolean = false) As IReadOnlyList(Of IConventionProperty)
Parametri
- propertyNames
- IReadOnlyList<String>
Nomi delle proprietà.
- fromDataAnnotation
- Boolean
Indica se la configurazione è stata specificata utilizzando un'annotazione dati.
Restituisce
Elenco di proprietà se presenti nel tipo di entità; in caso contrario, null
.
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