Metodo SqlFunctions.StringConvert (Nullable<Double>, 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 := "length")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "number")> _
Public Shared Function StringConvert ( _
number As Nullable(Of Double), _
length As Nullable(Of Integer) _
) As String
'Utilizzo
Dim number As Nullable(Of Double)
Dim length As Nullable(Of Integer)
Dim returnValue As String
returnValue = SqlFunctions.StringConvert(number, _
length)
[DbFunctionAttribute("SqlServer", "STR")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "length")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")]
public static string StringConvert(
Nullable<double> number,
Nullable<int> length
)
[DbFunctionAttribute(L"SqlServer", L"STR")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"length")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"number")]
public:
static String^ StringConvert(
Nullable<double> number,
Nullable<int> length
)
[<DbFunctionAttribute("SqlServer", "STR")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "length")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "number")>]
static member StringConvert :
number:Nullable<float> *
length:Nullable<int> -> string
public static function StringConvert(
number : Nullable<double>,
length : Nullable<int>
) : String
Parametri
- number
Tipo: System.Nullable<Double>
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.
Valore restituito
Tipo: System.String
Espressione di input numerica convertita in una stringa.