C# Class System.Data.SqlClient.MetaType

ファイルを表示 Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
FromDateTime ( System.DateTime dateTime, byte cb ) : TdsDateTime
MetaType ( byte precision, byte scale, int fixedLength, bool isFixed, bool isLong, bool isPlp, byte tdsType, byte nullableTdsType, string typeName, Type classType, Type sqlType, SqlDbType sqldbType, DbType dbType, byte propBytes ) : System.Collections.Generic
ToDateTime ( int sqlDays, int sqlTime, int length ) : DateTime

Private Methods

Method Description
GetComValueFromSqlVariant ( object sqlVal ) : object
GetDefaultMetaType ( ) : MetaType
GetMaxMetaTypeFromMetaType ( MetaType mt ) : MetaType
GetMetaTypeFromDbType ( DbType target ) : MetaType
GetMetaTypeFromSqlDbType ( SqlDbType target, bool isMultiValued ) : MetaType
GetMetaTypeFromType ( Type dataType, bool streamAllowed = true ) : MetaType
GetMetaTypeFromValue ( object value, bool inferLen = true, bool streamAllowed = true ) : MetaType
GetNullSqlValue ( Type sqlType ) : object
GetSqlDataType ( int tdsType, UInt32 userType, int length ) : MetaType
GetSqlValueFromComVariant ( object comVal ) : object
GetStringFromXml ( XmlReader xmlreader ) : String
GetTimeSizeFromScale ( byte scale ) : int
PromoteStringType ( string s ) : MetaType
_Is100Supported ( SqlDbType type ) : bool
_Is70Supported ( SqlDbType type ) : bool
_Is80Supported ( SqlDbType type ) : bool
_Is90Supported ( SqlDbType type ) : bool
_IsAnsiType ( SqlDbType type ) : bool
_IsBinType ( SqlDbType type ) : bool
_IsCharType ( SqlDbType type ) : bool
_IsNCharType ( SqlDbType type ) : bool
_IsNewKatmaiType ( SqlDbType type ) : bool
_IsSizeInCharacters ( SqlDbType type ) : bool
_IsVarTime ( SqlDbType type ) : bool

Method Details

FromDateTime() public static method

public static FromDateTime ( System.DateTime dateTime, byte cb ) : TdsDateTime
dateTime System.DateTime
cb byte
return TdsDateTime

MetaType() public method

public MetaType ( byte precision, byte scale, int fixedLength, bool isFixed, bool isLong, bool isPlp, byte tdsType, byte nullableTdsType, string typeName, Type classType, Type sqlType, SqlDbType sqldbType, DbType dbType, byte propBytes ) : System.Collections.Generic
precision byte
scale byte
fixedLength int
isFixed bool
isLong bool
isPlp bool
tdsType byte
nullableTdsType byte
typeName string
classType Type
sqlType Type
sqldbType SqlDbType
dbType DbType
propBytes byte
return System.Collections.Generic

ToDateTime() public static method

public static ToDateTime ( int sqlDays, int sqlTime, int length ) : DateTime
sqlDays int
sqlTime int
length int
return DateTime