DbExpressionBuilder.Element Method (DbExpression)

.NET Framework (current version)
 

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

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

public static DbElementExpression Element(
	this DbExpression argument
)

Parameters

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

An expression that specifies the input set.

Return Value

Type: System.Data.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 collection result type.

.NET Framework
Available since 4.5
Return to top
Show: