Export (0) Print
Expand All

SqlFunctions.Sign Method

Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member Sign(Nullable<Decimal>) Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
Public method Static member Sign(Nullable<Double>) Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
Public method Static member Sign(Nullable<Int32>) Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
Public method Static member Sign(Nullable<Int64>) Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
Top

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 SIGN (Transact-SQL).

Show:
© 2014 Microsoft