SqlFunctions.StringConvert 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回從數值資料轉換而來的字元資料。
多載
| 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
參數
傳回
轉換成字串的輸入運算式。
- 屬性
備註
您無法直接呼叫此函式。 此函式只能出現在 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
參數
傳回
轉換成字串的數字輸入運算式。
- 屬性
備註
您無法直接呼叫此函式。 此函式只能出現在 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
參數
傳回
轉換成字串的輸入運算式。
- 屬性
備註
您無法直接呼叫此函式。 此函式只能出現在 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
參數
傳回
轉換成字串的數字輸入運算式。
- 屬性
備註
您無法直接呼叫此函式。 此函式只能出現在 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
參數
傳回
轉換成字串的輸入運算式。
- 屬性
備註
您無法直接呼叫此函式。 此函式只能出現在 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
參數
傳回
轉換成字串的數字輸入運算式。
- 屬性
備註
您無法直接呼叫此函式。 此函式只能出現在 LINQ to Entities 查詢內。
此函式會轉譯為資料庫中的對應函式。 如需對應 SQL Server 函數的相關信息,請參閱 STR (Transact-SQL) 。