DbExpressionBuilder.Deref Method (DbExpression)

 

Creates a new DbDerefExpression that retrieves a specific Entity given a reference expression.

Namespace:   System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
Assembly:  EntityFramework (in EntityFramework.dll)

[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "Deref")]
public static DbDerefExpression Deref(
	this DbExpression argument
)

Parameters

argument
Type: System.Data.Entity.Core.Common.CommandTrees.DbExpression

An DbExpression that provides the reference. This expression must have a reference Type.

Return Value

Type: System.Data.Entity.Core.Common.CommandTrees.DbDerefExpression

A new DbDerefExpression that retrieves the specified Entity.

Exception Condition
ArgumentNullException

argument is null

ArgumentException

argument does not have a reference result type.