C# Class System.Data.Common.SqlConvert

Exibir arquivo Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
ChangeType2 ( object value, StorageType stype, Type type, IFormatProvider formatProvider ) : object
ChangeTypeForDefaultValue ( object value, Type type, IFormatProvider formatProvider ) : object
ChangeTypeForXML ( object value, Type type ) : object
ConvertStringToDateTimeOffset ( string value, IFormatProvider formatProvider ) : DateTimeOffset
ConvertToSqlBinary ( object value ) : SqlBinary
ConvertToSqlBoolean ( object value ) : SqlBoolean
ConvertToSqlByte ( object value ) : SqlByte
ConvertToSqlBytes ( object value ) : SqlBytes
ConvertToSqlChars ( object value ) : SqlChars
ConvertToSqlDateTime ( object value ) : SqlDateTime
ConvertToSqlDecimal ( object value ) : SqlDecimal
ConvertToSqlDouble ( object value ) : SqlDouble
ConvertToSqlGuid ( object value ) : SqlGuid
ConvertToSqlInt16 ( object value ) : SqlInt16
ConvertToSqlInt32 ( object value ) : SqlInt32
ConvertToSqlInt64 ( object value ) : SqlInt64
ConvertToSqlMoney ( object value ) : SqlMoney
ConvertToSqlSingle ( object value ) : SqlSingle
ConvertToSqlString ( object value ) : SqlString

Method Details

ChangeType2() public static method

public static ChangeType2 ( object value, StorageType stype, Type type, IFormatProvider formatProvider ) : object
value object
stype StorageType
type Type
formatProvider IFormatProvider
return object

ChangeTypeForDefaultValue() public static method

public static ChangeTypeForDefaultValue ( object value, Type type, IFormatProvider formatProvider ) : object
value object
type Type
formatProvider IFormatProvider
return object

ChangeTypeForXML() public static method

public static ChangeTypeForXML ( object value, Type type ) : object
value object
type Type
return object

ConvertStringToDateTimeOffset() public static method

public static ConvertStringToDateTimeOffset ( string value, IFormatProvider formatProvider ) : DateTimeOffset
value string
formatProvider IFormatProvider
return DateTimeOffset

ConvertToSqlBinary() public static method

public static ConvertToSqlBinary ( object value ) : SqlBinary
value object
return System.Data.SqlTypes.SqlBinary

ConvertToSqlBoolean() public static method

public static ConvertToSqlBoolean ( object value ) : SqlBoolean
value object
return System.Data.SqlTypes.SqlBoolean

ConvertToSqlByte() public static method

public static ConvertToSqlByte ( object value ) : SqlByte
value object
return System.Data.SqlTypes.SqlByte

ConvertToSqlBytes() public static method

public static ConvertToSqlBytes ( object value ) : SqlBytes
value object
return System.Data.SqlTypes.SqlBytes

ConvertToSqlChars() public static method

public static ConvertToSqlChars ( object value ) : SqlChars
value object
return System.Data.SqlTypes.SqlChars

ConvertToSqlDateTime() public static method

public static ConvertToSqlDateTime ( object value ) : SqlDateTime
value object
return System.Data.SqlTypes.SqlDateTime

ConvertToSqlDecimal() public static method

public static ConvertToSqlDecimal ( object value ) : SqlDecimal
value object
return System.Data.SqlTypes.SqlDecimal

ConvertToSqlDouble() public static method

public static ConvertToSqlDouble ( object value ) : SqlDouble
value object
return System.Data.SqlTypes.SqlDouble

ConvertToSqlGuid() public static method

public static ConvertToSqlGuid ( object value ) : SqlGuid
value object
return System.Data.SqlTypes.SqlGuid

ConvertToSqlInt16() public static method

public static ConvertToSqlInt16 ( object value ) : SqlInt16
value object
return System.Data.SqlTypes.SqlInt16

ConvertToSqlInt32() public static method

public static ConvertToSqlInt32 ( object value ) : SqlInt32
value object
return System.Data.SqlTypes.SqlInt32

ConvertToSqlInt64() public static method

public static ConvertToSqlInt64 ( object value ) : SqlInt64
value object
return System.Data.SqlTypes.SqlInt64

ConvertToSqlMoney() public static method

public static ConvertToSqlMoney ( object value ) : SqlMoney
value object
return System.Data.SqlTypes.SqlMoney

ConvertToSqlSingle() public static method

public static ConvertToSqlSingle ( object value ) : SqlSingle
value object
return System.Data.SqlTypes.SqlSingle

ConvertToSqlString() public static method

public static ConvertToSqlString ( object value ) : SqlString
value object
return System.Data.SqlTypes.SqlString