![]() | DataReaderEx 类 |
命名空间: Sweet.Common
DataReaderEx 类型公开以下成员。
名称 | 说明 | |
---|---|---|
![]() ![]() | GetT(IDataReader, String) |
Gets the record value casted to the specified data type or the data types default value.
|
![]() ![]() | GetT(IDataReader, String, T) |
Gets the record value casted to the specified data type or the specified default value.
|
![]() ![]() | GetBoolean(IDataReader, String) |
Gets the record value casted as bool or false.
|
![]() ![]() | GetBoolean(IDataReader, String, Boolean) |
Gets the record value casted as bool or the specified default value.
|
![]() ![]() | GetBytes |
Gets the record value casted as byte array.
|
![]() ![]() | GetDateTime(IDataReader, String) |
Gets the record value casted as DateTime or DateTime.Minimum.
|
![]() ![]() | GetDateTime(IDataReader, String, DateTime) |
Gets the record value casted as DateTime or the specified default value.
|
![]() ![]() | GetDateTimeOffset(IDataReader, String) |
Gets the record value casted as DateTimeOffset (UTC) or DateTime.Minimum.
|
![]() ![]() | GetDateTimeOffset(IDataReader, String, DateTimeOffset) |
Gets the record value casted as DateTimeOffset (UTC) or the specified default value.
|
![]() ![]() | GetDecimal(IDataReader, String) |
Gets the record value casted as decimal or 0.
|
![]() ![]() | GetDecimal(IDataReader, String, Int64) |
Gets the record value casted as decimal or the specified default value.
|
![]() ![]() | GetGuid |
Gets the record value casted as Guid or Guid.Empty.
|
![]() ![]() | GetInt32(IDataReader, String) |
Gets the record value casted as int or 0.
|
![]() ![]() | GetInt32(IDataReader, String, Int32) |
Gets the record value casted as int or the specified default value.
|
![]() ![]() | GetInt64(IDataReader, String) |
Gets the record value casted as long or 0.
|
![]() ![]() | GetInt64(IDataReader, String, Int32) |
Gets the record value casted as long or the specified default value.
|
![]() ![]() | GetNullableBoolean |
Gets the record value casted as bool or null.
|
![]() ![]() | GetNullableDateTime |
Gets the record value casted as DateTime or null.
|
![]() ![]() | GetNullableDateTimeOffset |
Gets the record value casted as DateTimeOffset (UTC) or null.
|
![]() ![]() | GetNullableDecimal |
Gets the record value casted as decimal or null.
|
![]() ![]() | GetNullableGuid |
Gets the record value casted as Guid? or null.
|
![]() ![]() | GetNullableInt32 |
Gets the record value casted as int or null.
|
![]() ![]() | GetNullableInt64 |
Gets the record value casted as long or null.
|
![]() ![]() | GetString(IDataReader, String) |
Gets the record value casted as string or null.
|
![]() ![]() | GetString(IDataReader, String, String) |
Gets the record value casted as string or the specified default value.
|
![]() ![]() | GetType(IDataReader, String) |
Gets the record value as Type class instance or null.
|
![]() ![]() | GetType(IDataReader, String, Type) |
Gets the record value as Type class instance or the specified default value.
|
![]() ![]() | GetTypeInstance(IDataReader, String) |
Gets the record value as class instance from a type name or null.
|
![]() ![]() | GetTypeInstance(IDataReader, String, Type) |
Gets the record value as class instance from a type name or the specified default type.
|
![]() ![]() | GetTypeInstanceT(IDataReader, String) |
Gets the record value as class instance from a type name or null.
|
![]() ![]() | GetTypeInstanceSafeT(IDataReader, String) |
Gets the record value as class instance from a type name or an instance from the specified type.
|
![]() ![]() | GetTypeInstanceSafeT(IDataReader, String, Type) |
Gets the record value as class instance from a type name or the specified default type.
|
![]() ![]() | IndexOf |
获取要查找的字段的索引
|
![]() ![]() | IsDBNull |
Determines whether the record value is DBNull.Value
|
![]() ![]() | IsInState |
Returns true if the database connection is in the specified state.
|
![]() ![]() | OpenIfNot |
Open the Database connection if not already opened.
|
![]() ![]() | ReadAll |
Reads all all records from a data reader and performs an action for each.
|