DbExpressionBuilder.Element Method (DbExpression)
Creates a new DbElementExpression that converts a set into a singleton.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- argument
-
Type:
System.Data.Entity.Core.Common.CommandTrees.DbExpression
An expression that specifies the input set.
Return Value
Type: System.Data.Entity.Core.Common.CommandTrees.DbElementExpressionA DbElementExpression that represents the conversion of the set argument to a singleton.
Exception | Condition |
---|---|
ArgumentNullException | argument is null. |
ArgumentException | argument does not have a reference result type. |