Condividi tramite


IConventionEntityTypeBuilder.GetOrCreateProperties Metodo

Definizione

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