DbExpressionBuilder.Element Method (DbExpression)

 

Creates a new DbElementExpression that converts a set into a singleton.

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

public static DbElementExpression Element(
	this DbExpression argument
)

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.DbElementExpression

A 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.