ExpressionExtensions.GetPropertyAccessList(LambdaExpression) 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.
Returns a list of PropertyInfo extracted from the given simple LambdaExpression.
public static System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo> GetPropertyAccessList (this System.Linq.Expressions.LambdaExpression propertyAccessExpression);
static member GetPropertyAccessList : System.Linq.Expressions.LambdaExpression -> System.Collections.Generic.IReadOnlyList<System.Reflection.PropertyInfo>
<Extension()>
Public Function GetPropertyAccessList (propertyAccessExpression As LambdaExpression) As IReadOnlyList(Of PropertyInfo)
Parameters
- propertyAccessExpression
- LambdaExpression
The expression.
Returns
The list of referenced properties.
Remarks
Only simple expressions are supported, such as those used to reference a property.
This method is typically used by database providers (and other extensions). It is generally not used in application code.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework