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,则将结果的小数点右侧截为十六位。

返回

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

属性

注解

不能直接调用此函数。 此函数只能出现在 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,则将结果的小数点右侧截为十六位。

返回

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

属性

注解

不能直接调用此函数。 此函数只能出现在 LINQ to Entities 查询中。

此函数将转换为数据库中的相应函数。 有关相应SQL Server函数的信息,请参阅 STR (Transact-SQL)

适用于