Aracılığıyla paylaş


MutableEntityTypeExtensions.FindProperty Yöntem

Tanım

Verilen varlık türünde bir özellik alır. Özellik bulunmazsa döndürür null .

Bu API yalnızca skaler özellikleri bulur ve gezinti özelliklerini bulmaz. Gezinti özelliğini bulmak için kullanın FindNavigation(IMutableEntityType, MemberInfo) .

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty FindProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, System.Reflection.PropertyInfo propertyInfo);
static member FindProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * System.Reflection.PropertyInfo -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function FindProperty (entityType As IMutableEntityType, propertyInfo As PropertyInfo) As IMutableProperty

Parametreler

entityType
IMutableEntityType

Varlık türü.

propertyInfo
PropertyInfo

varlık sınıfındaki özelliği.

Döndürülenler

özelliği veya null hiç bulunamazsa.

Şunlara uygulanır