IReadOnlyTypeBase.FindProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FindProperty(MemberInfo) |
Gets a property with the given member info. Returns |
FindProperty(String) |
Gets the property with the given name. Returns |
FindProperty(MemberInfo)
Gets a property with the given member info. Returns null
if no property is found.
public virtual Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty? FindProperty (System.Reflection.MemberInfo memberInfo);
abstract member FindProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
override this.FindProperty : System.Reflection.MemberInfo -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
Public Overridable Function FindProperty (memberInfo As MemberInfo) As IReadOnlyProperty
Parameters
- memberInfo
- MemberInfo
The member on the class.
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 the given name. Returns null
if no property with the given name is defined.
public Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty? FindProperty (string name);
abstract member FindProperty : string -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
Public Function FindProperty (name As String) As IReadOnlyProperty
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
Entity Framework