共用方式為


SqlFunctions.StringConvert 方法

定義

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

多載

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 to 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 to 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 to 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 to 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 to 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,則結果會截斷成小數點右邊的 16 位數。

傳回

轉換成字串的輸入運算式。

屬性

備註

您無法直接呼叫此函式。 此函式只能出現在 LINQ to 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,則結果會截斷成小數點右邊的 16 位數。

傳回

轉換成字串的數字輸入運算式。

屬性

備註

您無法直接呼叫此函式。 此函式只能出現在 LINQ to Entities 查詢內。

此函式會轉譯為資料庫中的對應函式。 如需對應 SQL Server 函數的相關信息,請參閱 STR (Transact-SQL)

適用於