SqlFunctions.Square Method

Definition

Returns the square of the specified number.

Overloads

Square(Nullable<Decimal>)

Returns the square of the specified number.

Square(Nullable<Double>)

Returns the square of the specified number.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see SQUARE (Transact-SQL).

Square(Nullable<Decimal>)

Returns the square of the specified number.

public:
 static Nullable<double> Square(Nullable<System::Decimal> arg1);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SQUARE")]
public static double? Square (decimal? arg1);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SQUARE")>]
static member Square : Nullable<decimal> -> Nullable<double>
Public Shared Function Square (arg1 As Nullable(Of Decimal)) As Nullable(Of Double)

Parameters

arg1
Nullable<Decimal>

A numeric expression.

Returns

The square of the input value.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see SQUARE (Transact-SQL).

Applies to

Square(Nullable<Double>)

Returns the square of the specified number.

public:
 static Nullable<double> Square(Nullable<double> arg1);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SQUARE")]
public static double? Square (double? arg1);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SQUARE")>]
static member Square : Nullable<double> -> Nullable<double>
Public Shared Function Square (arg1 As Nullable(Of Double)) As Nullable(Of Double)

Parameters

arg1
Nullable<Double>

A numeric expression.

Returns

The square of the input value.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see SQUARE (Transact-SQL).

Applies to