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>)

返回由数字数据转换来的字符数据。

StringConvert(Nullable<Decimal>)

返回由数字数据转换来的字符数据。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
public static string StringConvert (Nullable<decimal> number);
static member StringConvert : Nullable<decimal> -> string
Public Shared Function StringConvert (number As Nullable(Of Decimal)) As String

参数

number
Nullable<Decimal>

数值表达式。

返回

转换为字符串的输入表达式。

属性

适用于

StringConvert(Nullable<Double>)

返回由数字数据转换来的字符数据。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
public static string StringConvert (Nullable<double> number);
static member StringConvert : Nullable<double> -> string
Public Shared Function StringConvert (number As Nullable(Of Double)) As String

参数

number
Nullable<Double>

数值表达式。

返回

转换为字符串的数字输入表达式。

属性

适用于

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

返回由数字数据转换来的字符数据。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
public static string StringConvert (Nullable<decimal> number, Nullable<int> length);
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。

返回

转换为字符串的输入表达式。

属性

适用于

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

返回由数字数据转换来的字符数据。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
public static string StringConvert (Nullable<double> number, Nullable<int> length);
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。

返回

转换为字符串的数字输入表达式。

属性

适用于

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

返回由数字数据转换来的字符数据。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="decimalArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
public static string StringConvert (Nullable<decimal> number, Nullable<int> length, Nullable<int> decimalArg);
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>

小数点右侧的位数。 小数必须小于或等于 16 位。 如果 decimal 大于 16,则将结果截断为小数点右边的 16 位。

返回

转换为字符串的输入表达式。

属性

适用于

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

返回由数字数据转换来的字符数据。

[System.Data.Entity.DbFunction("SqlServer", "STR")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="number")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="decimalArg")]
public static string StringConvert (Nullable<double> number, Nullable<int> length, Nullable<int> decimalArg);
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>

小数点右侧的位数。 小数必须小于或等于 16 位。 如果 decimal 大于 16,则将结果截断为小数点右边的 16 位。

返回

转换为字符串的数字输入表达式。

属性

适用于