SqlFunctions.Sign Method
Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Name | Description | |
---|---|---|
![]() ![]() | Sign(Nullable<Decimal>) | Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression. |
![]() ![]() | Sign(Nullable<Double>) | Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression. |
![]() ![]() | Sign(Nullable<Int32>) | Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression. |
![]() ![]() | Sign(Nullable<Int64>) | Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression. |
SqlFunctions.Sign Method (Nullable<Decimal>)
Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
[DbFunctionAttribute("SqlServer", "SIGN")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] public static Nullable<decimal> Sign( Nullable<decimal> arg )
Parameters
- arg
-
Type:
System.Nullable<Decimal>
A numeric expression.
SqlFunctions.Sign Method (Nullable<Double>)
Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] [DbFunctionAttribute("SqlServer", "SIGN")] public static Nullable<double> Sign( Nullable<double> arg )
Parameters
- arg
-
Type:
System.Nullable<Double>
A numeric expression.
SqlFunctions.Sign Method (Nullable<Int32>)
Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
[DbFunctionAttribute("SqlServer", "SIGN")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] public static Nullable<int> Sign( Nullable<int> arg )
Parameters
- arg
-
Type:
System.Nullable<Int32>
A numeric expression.
SqlFunctions.Sign Method (Nullable<Int64>)
Returns the positive (+1), zero (0), or negative (-1) sign of the specified expression.
[DbFunctionAttribute("SqlServer", "SIGN")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] public static Nullable<long> Sign( Nullable<long> arg )
Parameters
- arg
-
Type:
System.Nullable<Int64>
A numeric expression.