Extensions Class

Provides extension methods for common ADO.NET objects.

Inheritance Hierarchy

System.Object
  DbExtensions.Extensions

Namespace: DbExtensions
Assembly: DbExtensions.dll

Syntax

public static class Extensions

The Extensions type exposes the following members.

Methods

Name Description
GetBoolean Gets the value of the specified column as a Boolean.
GetByte Gets the value of the specified column as a Byte.
GetChar Gets the value of the specified column as a Char.
GetDateTime Gets the value of the specified column as a DateTime.
GetDecimal Gets the value of the specified column as a Decimal.
GetDouble Gets the value of the specified column as a Double.
GetFloat Gets the value of the specified column as a Single.
GetInt16 Gets the value of the specified column as an Int16.
GetInt32 Gets the value of the specified column as an Int32.
GetInt64 Gets the value of the specified column as an Int64.
GetNullableBoolean(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of Boolean.
GetNullableBoolean(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of Boolean.
GetNullableByte(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of Byte.
GetNullableByte(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of Byte.
GetNullableChar(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of Char.
GetNullableChar(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of Char.
GetNullableDateTime(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of DateTime.
GetNullableDateTime(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of DateTime.
GetNullableDecimal(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of Decimal.
GetNullableDecimal(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of Decimal.
GetNullableDouble(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of Double.
GetNullableDouble(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of Double.
GetNullableFloat(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of Single.
GetNullableFloat(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of Single.
GetNullableGuid(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of Guid.
GetNullableGuid(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of Guid.
GetNullableInt16(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of Int16.
GetNullableInt16(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of Int16.
GetNullableInt32(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of Int32.
GetNullableInt32(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of Int32.
GetNullableInt64(DbDataReader, Int32) Gets the value of the specified column as a Nullable<T> of Int64.
GetNullableInt64(DbDataReader, String) Gets the value of the specified column as a Nullable<T> of Int64.
GetString Gets the value of the specified column as a String.
GetStringOrNull(DbDataReader, Int32) Gets the value of the specified column as a String, or null (Nothing in Visual Basic).
GetStringOrNull(DbDataReader, String) Gets the value of the specified column as a String, or null (Nothing in Visual Basic).
GetValue Gets the value of the specified column.
GetValueOrNull(DbDataReader, Int32) Gets the value of the specified column as an Object, or null (Nothing in Visual Basic).
GetValueOrNull(DbDataReader, String) Gets the value of the specified column as an Object, or null (Nothing in Visual Basic).

See Also

Reference

DbExtensions Namespace

© Max Toro Q.