SqlFunctions.StringConvert 方法

定義

傳回從數值資料轉換而來的字元資料。

多載

名稱 Description
StringConvert(Nullable<Decimal>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Double>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Decimal>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Double>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Decimal>, Nullable<Int32>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

StringConvert(Nullable<Double>, Nullable<Int32>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。 關於對應SQL Server函數的資訊,請參見 STR (Transact-SQL)

StringConvert(Nullable<Decimal>)

傳回從數值資料轉換而來的字元資料。

public:
 static System::String ^ StringConvert(Nullable<System::Decimal> number);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")]
public static string StringConvert(decimal? number);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")>]
static member StringConvert : Nullable<decimal> -> string
Public Shared Function StringConvert (number As Nullable(Of Decimal)) As String

參數

number
Nullable<Decimal>

數值運算式。

傳回

輸入表達式會轉換成字串。

屬性

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。 關於對應SQL Server函數的資訊,請參見 STR (Transact-SQL)

適用於

StringConvert(Nullable<Double>)

傳回從數值資料轉換而來的字元資料。

public:
 static System::String ^ StringConvert(Nullable<double> number);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")]
public static string StringConvert(double? number);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")>]
static member StringConvert : Nullable<double> -> string
Public Shared Function StringConvert (number As Nullable(Of Double)) As String

參數

number
Nullable<Double>

數值運算式。

傳回

數字輸入表達式會轉換成字串。

屬性

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。 關於對應SQL Server函數的資訊,請參見 STR (Transact-SQL)

適用於

StringConvert(Nullable<Decimal>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

public:
 static System::String ^ StringConvert(Nullable<System::Decimal> number, Nullable<int> length);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")]
public static string StringConvert(decimal? number, int? length);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")>]
static member StringConvert : Nullable<decimal> * Nullable<int> -> string
Public Shared Function StringConvert (number As Nullable(Of Decimal), length As Nullable(Of Integer)) As String

參數

number
Nullable<Decimal>

數值運算式。

length
Nullable<Int32>

弦的總長度。 這包括小數點、符號、數位和空格。 預設值為 10。

傳回

輸入表達式會轉換成字串。

屬性

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。 關於對應SQL Server函數的資訊,請參見 STR (Transact-SQL)

適用於

StringConvert(Nullable<Double>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

public:
 static System::String ^ StringConvert(Nullable<double> number, Nullable<int> length);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")]
public static string StringConvert(double? number, int? length);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")>]
static member StringConvert : Nullable<double> * Nullable<int> -> string
Public Shared Function StringConvert (number As Nullable(Of Double), length As Nullable(Of Integer)) As String

參數

number
Nullable<Double>

數值運算式。

length
Nullable<Int32>

弦的總長度。 這包括小數點、符號、數位和空格。 預設值為 10。

傳回

數字輸入表達式會轉換成字串。

屬性

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。 關於對應SQL Server函數的資訊,請參見 STR (Transact-SQL)

適用於

StringConvert(Nullable<Decimal>, Nullable<Int32>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

public:
 static System::String ^ StringConvert(Nullable<System::Decimal> number, Nullable<int> length, Nullable<int> decimalArg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")]
public static string StringConvert(decimal? number, int? length, int? decimalArg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")>]
static member StringConvert : Nullable<decimal> * Nullable<int> * Nullable<int> -> string
Public Shared Function StringConvert (number As Nullable(Of Decimal), length As Nullable(Of Integer), decimalArg As Nullable(Of Integer)) As String

參數

number
Nullable<Decimal>

數值運算式。

length
Nullable<Int32>

弦的總長度。 這包括小數點、符號、數位和空格。 預設值為 10。

decimalArg
Nullable<Int32>

小數點右側的位數。 decimalArg 必須小於或等於16。 若 decimalArg 大於 16,則結果會截斷至小數點右側的十六位。

傳回

輸入表達式會轉換成字串。

屬性

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。 關於對應SQL Server函數的資訊,請參見 STR (Transact-SQL)

適用於

StringConvert(Nullable<Double>, Nullable<Int32>, Nullable<Int32>)

傳回從數值資料轉換而來的字元資料。

public:
 static System::String ^ StringConvert(Nullable<double> number, Nullable<int> length, Nullable<int> decimalArg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")]
public static string StringConvert(double? number, int? length, int? decimalArg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "STR")>]
static member StringConvert : Nullable<double> * Nullable<int> * Nullable<int> -> string
Public Shared Function StringConvert (number As Nullable(Of Double), length As Nullable(Of Integer), decimalArg As Nullable(Of Integer)) As String

參數

number
Nullable<Double>

數值運算式。

length
Nullable<Int32>

弦的總長度。 這包括小數點、符號、數位和空格。 預設值為 10。

decimalArg
Nullable<Int32>

小數點右側的位數。 decimalArg 必須小於或等於16。 若 decimalArg 大於 16,則結果會截斷至小數點右側的十六位。

傳回

數字輸入表達式會轉換成字串。

屬性

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。 關於對應SQL Server函數的資訊,請參見 STR (Transact-SQL)

適用於