SqlCeFunctions.StringConvert Method

 

Returns character data converted from numeric data.

Namespace:   System.Data.Entity.SqlServerCompact
Assembly:  EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticStringConvert(Nullable<Decimal>)

Returns character data converted from numeric data.

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

Returns character data converted from numeric data.

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

Returns character data converted from numeric data.

System_CAPS_pubmethodSystem_CAPS_staticStringConvert(Nullable<Double>)

Returns character data converted from numeric data.

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

Returns character data converted from numeric data.

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

Returns character data converted from numeric data.


SqlCeFunctions.StringConvert Method (Nullable<Decimal>)

Returns character data converted from numeric data.

[DbFunctionAttribute("SqlServerCe", "STR")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "number")]
public static string StringConvert(
	Nullable<decimal> number
)

Parameters

number
Type: System.Nullable<Decimal>

A numeric expression.

Return Value

Type: System.String

The input expression converted to a string.


SqlCeFunctions.StringConvert Method (Nullable<Decimal>, Nullable<Int32>)

Returns character data converted from numeric data.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "number")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "length")]
[DbFunctionAttribute("SqlServerCe", "STR")]
public static string StringConvert(
	Nullable<decimal> number,
	Nullable<int> length
)

Parameters

number
Type: System.Nullable<Decimal>

A numeric expression.

length
Type: System.Nullable<Int32>

The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.

Return Value

Type: System.String

The input expression converted to a string.


SqlCeFunctions.StringConvert Method (Nullable<Decimal>, Nullable<Int32>, Nullable<Int32>)

Returns character data converted from numeric data.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "decimalArg")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "number")]
[DbFunctionAttribute("SqlServerCe", "STR")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "length")]
public static string StringConvert(
	Nullable<decimal> number,
	Nullable<int> length,
	Nullable<int> decimalArg
)

Parameters

number
Type: System.Nullable<Decimal>

A numeric expression.

length
Type: System.Nullable<Int32>

The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.

decimalArg
Type: System.Nullable<Int32>

The number of places to the right of the decimal point. decimal must be less than or equal to 16. If decimal is more than 16 then the result is truncated to sixteen places to the right of the decimal point.

Return Value

Type: System.String

The input expression converted to a string.


SqlCeFunctions.StringConvert Method (Nullable<Double>)

Returns character data converted from numeric data.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "number")]
[DbFunctionAttribute("SqlServerCe", "STR")]
public static string StringConvert(
	Nullable<double> number
)

Parameters

number
Type: System.Nullable<Double>

A numeric expression.

Return Value

Type: System.String

The numeric input expression converted to a string.


SqlCeFunctions.StringConvert Method (Nullable<Double>, Nullable<Int32>)

Returns character data converted from numeric data.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "length")]
[DbFunctionAttribute("SqlServerCe", "STR")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "number")]
public static string StringConvert(
	Nullable<double> number,
	Nullable<int> length
)

Parameters

number
Type: System.Nullable<Double>

A numeric expression.

length
Type: System.Nullable<Int32>

The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.

Return Value

Type: System.String

The numeric input expression converted to a string.


SqlCeFunctions.StringConvert Method (Nullable<Double>, Nullable<Int32>, Nullable<Int32>)

Returns character data converted from numeric data.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "length")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "decimalArg")]
[DbFunctionAttribute("SqlServerCe", "STR")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "number")]
public static string StringConvert(
	Nullable<double> number,
	Nullable<int> length,
	Nullable<int> decimalArg
)

Parameters

number
Type: System.Nullable<Double>

A numeric expression.

length
Type: System.Nullable<Int32>

The total length of the string. This includes decimal point, sign, digits, and spaces. The default is 10.

decimalArg
Type: System.Nullable<Int32>

The number of places to the right of the decimal point. decimal must be less than or equal to 16. If decimal is more than 16 then the result is truncated to sixteen places to the right of the decimal point.

Return Value

Type: System.String

The numeric input expression converted to a string.