Aracılığıyla paylaş


IConventionTypeBaseBuilder.GetOrCreateProperties Yöntem

Tanım

Aşırı Yüklemeler

GetOrCreateProperties(IReadOnlyList<String>, Boolean)

Verilen adlarla mevcut özellikleri döndürür veya eşleşen CLR üyeleri bulunursa bunları oluşturur.

GetOrCreateProperties(IEnumerable<MemberInfo>, Boolean)

Verilen üyeyle eşleşen mevcut özellikleri döndürür veya bunları oluşturur.

GetOrCreateProperties(IReadOnlyList<String>, Boolean)

Verilen adlarla mevcut özellikleri döndürür veya eşleşen CLR üyeleri bulunursa bunları oluşturur.

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)

Parametreler

propertyNames
IReadOnlyList<String>

Özelliklerin adları.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Tür üzerinde varsa özelliklerin listesi, null aksi takdirde.

Şunlara uygulanır

GetOrCreateProperties(IEnumerable<MemberInfo>, Boolean)

Verilen üyeyle eşleşen mevcut özellikleri döndürür veya bunları oluşturur.

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)

Parametreler

memberInfos
IEnumerable<MemberInfo>

Tür üyeleri.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmedidiğini gösterir.

Döndürülenler

Tür üzerinde varsa özelliklerin listesi, null aksi takdirde.

Şunlara uygulanır