Metodo SqlFunctions.StringConvert (Nullable<Decimal>, Nullable<Int32>, Nullable<Int32>)
[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 dati di tipo carattere convertiti da dati numerici.
Spazio dei nomi: System.Data.Entity.SqlServer
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Sintassi
'Dichiarazione
<DbFunctionAttribute("SqlServer", "STR")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "number")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "decimalArg")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "length")> _
Public Shared Function StringConvert ( _
number As Nullable(Of Decimal), _
length As Nullable(Of Integer), _
decimalArg As Nullable(Of Integer) _
) As String
'Utilizzo
Dim number As Nullable(Of Decimal)
Dim length As Nullable(Of Integer)
Dim decimalArg As Nullable(Of Integer)
Dim returnValue As String
returnValue = SqlFunctions.StringConvert(number, _
length, decimalArg)
[DbFunctionAttribute("SqlServer", "STR")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "decimalArg")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "length")]
public static string StringConvert(
Nullable<decimal> number,
Nullable<int> length,
Nullable<int> decimalArg
)
[DbFunctionAttribute(L"SqlServer", L"STR")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"number")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"decimalArg")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"length")]
public:
static String^ StringConvert(
Nullable<Decimal> number,
Nullable<int> length,
Nullable<int> decimalArg
)
[<DbFunctionAttribute("SqlServer", "STR")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "decimalArg")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "length")>]
static member StringConvert :
number:Nullable<decimal> *
length:Nullable<int> *
decimalArg:Nullable<int> -> string
public static function StringConvert(
number : Nullable<decimal>,
length : Nullable<int>,
decimalArg : Nullable<int>
) : String
Parametri
- number
Tipo: System.Nullable<Decimal>
Qualsiasi espressione numerica.
- length
Tipo: System.Nullable<Int32>
Lunghezza totale della stringa. Include il separatore decimale, il segno, le cifre e gli spazi. Il valore predefinito è 10.
- decimalArg
Tipo: System.Nullable<Int32>
Numero di posizioni a destra del separatore decimale. Il numero decimale deve essere minore o uguale a 16. Se è maggiore di 16, il risultato verrà troncato dopo le prime sedici posizioni a destra del separatore decimale.
Valore restituito
Tipo: System.String
Espressione di input convertita in una stringa.