DbExpressionBuilder.GetRefKey(DbExpression) Method

Definition

Creates a new DbRefKeyExpression that retrieves the key values of the specified reference in structural form.

public static System.Data.Common.CommandTrees.DbRefKeyExpression GetRefKey (this System.Data.Common.CommandTrees.DbExpression argument);

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

Produkt Versjoner
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1