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