ITypeBase.FindProperty Method

Definition

Overloads

FindProperty(MemberInfo)

Gets a property on the given type. Returns null if no property is found.

FindProperty(String)

Gets the property with a given name. Returns null if no property with the given name is defined.

FindProperty(MemberInfo)

Gets a property on the given type. Returns null if no property is found.

public virtual Microsoft.EntityFrameworkCore.Metadata.IProperty? FindProperty (System.Reflection.MemberInfo memberInfo);
abstract member FindProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IProperty
override this.FindProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IProperty
Public Overridable Function FindProperty (memberInfo As MemberInfo) As IProperty

Parameters

memberInfo
MemberInfo

The member on the CLR type.

Returns

The property, or null if none is found.

Remarks

This API only finds scalar properties and does not find navigation, complex or service properties.

Applies to

FindProperty(String)

Gets the property with a given name. Returns null if no property with the given name is defined.

public Microsoft.EntityFrameworkCore.Metadata.IProperty? FindProperty (string name);
abstract member FindProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IProperty
Public Function FindProperty (name As String) As IProperty

Parameters

name
String

The name of the property.

Returns

The property, or null if none is found.

Remarks

This API only finds scalar properties and does not find navigation, complex or service properties.

Applies to