DbExpressionBuilder.Deref Method (DbExpression)
Creates a new DbDerefExpression that retrieves a specific Entity given a reference expression.
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.DbDerefExpressionA new DbDerefExpression that retrieves the specified Entity.
Exception | Condition |
---|---|
ArgumentNullException | argument is null |
ArgumentException | argument does not have a reference result type. |