C# Class BelhardTraining.Extensions.DbDataReaderExtensions

Show file Open project: bazile/Training

Public Methods

Method Description
GetBoolean ( this reader, string columnName ) : bool
GetByte ( this reader, string columnName ) : byte
GetDateTime ( this reader, string columnName ) : System.DateTime
GetDecimal ( this reader, string columnName ) : decimal
GetDouble ( this reader, string columnName ) : double
GetGuid ( this reader, string columnName ) : System.Guid
GetInt16 ( this reader, string columnName ) : short
GetInt32 ( this reader, string columnName ) : int
GetInt64 ( this reader, string columnName ) : long
GetNullableBoolean ( this reader, string columnName ) : bool?
GetNullableByte ( this reader, string columnName ) : byte?
GetNullableDateTime ( this reader, string columnName ) : DateTime?
GetNullableDecimal ( this reader, string columnName ) : decimal?
GetNullableDouble ( this reader, string columnName ) : double?
GetNullableGuid ( this reader, string columnName ) : Guid?
GetNullableInt16 ( this reader, string columnName ) : short?
GetNullableInt32 ( this reader, string columnName ) : int?
GetNullableInt64 ( this reader, string columnName ) : long?
GetString ( this reader, string columnName ) : string

Method Details

GetBoolean() public static method

public static GetBoolean ( this reader, string columnName ) : bool
reader this
columnName string
return bool

GetByte() public static method

public static GetByte ( this reader, string columnName ) : byte
reader this
columnName string
return byte

GetDateTime() public static method

public static GetDateTime ( this reader, string columnName ) : System.DateTime
reader this
columnName string
return System.DateTime

GetDecimal() public static method

public static GetDecimal ( this reader, string columnName ) : decimal
reader this
columnName string
return decimal

GetDouble() public static method

public static GetDouble ( this reader, string columnName ) : double
reader this
columnName string
return double

GetGuid() public static method

public static GetGuid ( this reader, string columnName ) : System.Guid
reader this
columnName string
return System.Guid

GetInt16() public static method

public static GetInt16 ( this reader, string columnName ) : short
reader this
columnName string
return short

GetInt32() public static method

public static GetInt32 ( this reader, string columnName ) : int
reader this
columnName string
return int

GetInt64() public static method

public static GetInt64 ( this reader, string columnName ) : long
reader this
columnName string
return long

GetNullableBoolean() public static method

public static GetNullableBoolean ( this reader, string columnName ) : bool?
reader this
columnName string
return bool?

GetNullableByte() public static method

public static GetNullableByte ( this reader, string columnName ) : byte?
reader this
columnName string
return byte?

GetNullableDateTime() public static method

public static GetNullableDateTime ( this reader, string columnName ) : DateTime?
reader this
columnName string
return DateTime?

GetNullableDecimal() public static method

public static GetNullableDecimal ( this reader, string columnName ) : decimal?
reader this
columnName string
return decimal?

GetNullableDouble() public static method

public static GetNullableDouble ( this reader, string columnName ) : double?
reader this
columnName string
return double?

GetNullableGuid() public static method

public static GetNullableGuid ( this reader, string columnName ) : Guid?
reader this
columnName string
return Guid?

GetNullableInt16() public static method

public static GetNullableInt16 ( this reader, string columnName ) : short?
reader this
columnName string
return short?

GetNullableInt32() public static method

public static GetNullableInt32 ( this reader, string columnName ) : int?
reader this
columnName string
return int?

GetNullableInt64() public static method

public static GetNullableInt64 ( this reader, string columnName ) : long?
reader this
columnName string
return long?

GetString() public static method

public static GetString ( this reader, string columnName ) : string
reader this
columnName string
return string