EdmFunctions.Power Method (DbExpression, DbExpression)

.NET Framework (current version)
 

Creates a DbFunctionExpression that invokes the canonical 'Power' function with the specified arguments, which must have numeric result types. The result type of the expression is the same as the result type of baseArgument.

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

public static DbFunctionExpression Power(
	this DbExpression baseArgument,
	DbExpression exponent
)

Parameters

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

An expression that specifies the numeric value to raise to the given power.

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

An expression that specifies the power to which baseArgument should be raised.

Return Value

Type: System.Data.Common.CommandTrees.DbFunctionExpression

A new DbFunctionExpression that returns the value of baseArgument raised to the power specified by exponent.

Exception Condition
ArgumentNullException

baseArgumentexponent

ArgumentException

baseArgumentexponent

.NET Framework
Available since 4.5
Return to top
Show: