Condividi tramite


Metodo SqlFunctions.Sign (Nullable<Int64>)

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Restituisce il segno positivo (+1), zero (0) o il segno negativo (-1) dell'espressione specificata.

Spazio dei nomi:  System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

Sintassi

'Dichiarazione
<DbFunctionAttribute("SqlServer", "SIGN")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "arg")> _
Public Shared Function Sign ( _
    arg As Nullable(Of Long) _
) As Nullable(Of Long)
'Utilizzo
Dim arg As Nullable(Of Long)
Dim returnValue As Nullable(Of Long)

returnValue = SqlFunctions.Sign(arg)
[DbFunctionAttribute("SqlServer", "SIGN")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")]
public static Nullable<long> Sign(
    Nullable<long> arg
)
[DbFunctionAttribute(L"SqlServer", L"SIGN")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"arg")]
public:
static Nullable<long long> Sign(
    Nullable<long long> arg
)
[<DbFunctionAttribute("SqlServer", "SIGN")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")>]
static member Sign : 
        arg:Nullable<int64> -> Nullable<int64> 
public static function Sign(
    arg : Nullable<long>
) : Nullable<long>

Parametri

Valore restituito

Tipo: System.Nullable<Int64>
Segno dell'espressione di input.

Vedere anche

Riferimento

SqlFunctions Classe

Overload Sign

Spazio dei nomi System.Data.Entity.SqlServer