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