ExpressionExtensions.CreateKeyValuesExpression 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.
Creates an Expression tree representing reading of a key values on given expression.
This method is typically used by database providers (and other extensions). It is generally not used in application code.
public static System.Linq.Expressions.Expression CreateKeyValuesExpression (this System.Linq.Expressions.Expression target, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> properties, bool makeNullable = false);
static member CreateKeyValuesExpression : System.Linq.Expressions.Expression * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IProperty> * bool -> System.Linq.Expressions.Expression
<Extension()>
Public Function CreateKeyValuesExpression (target As Expression, properties As IReadOnlyList(Of IProperty), Optional makeNullable As Boolean = false) As Expression
Parameters
- target
- Expression
The expression that will be root for generated read operation.
- properties
- IReadOnlyList<IProperty>
The list of properties to use to generate key values.
- makeNullable
- Boolean
A value indicating if the key values should be read nullable.
Returns
An expression to read the key values.
Applies to
Entity Framework