DbExpressionBuilder.GetRefKey(DbExpression) 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 a new DbRefKeyExpression that retrieves the key values of the specifed reference in structural form.
public static System.Data.Entity.Core.Common.CommandTrees.DbRefKeyExpression GetRefKey (this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument);
static member GetRefKey : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbRefKeyExpression
<Extension()>
Public Function GetRefKey (argument As DbExpression) As DbRefKeyExpression
Parameters
- argument
- DbExpression
The expression that provides the reference. This expression must have a reference Type with an Entity element type.
Returns
A new DbRefKeyExpression that retrieves the key values of the specified reference.
Exceptions
argument is null.
argument does not have a reference result type.
Applies to
Entity Framework