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 specified reference in structural form.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbRefKeyExpression ^ GetRefKey(System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbRefKeyExpression GetRefKey (this System.Data.Common.CommandTrees.DbExpression argument);
static member GetRefKey : System.Data.Common.CommandTrees.DbExpression -> System.Data.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
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.