C# 클래스 EventCentric.Database.DataReaderExtensions

Provides usability overloads for SqlDataReader.
Based on: http://stackoverflow.com/questions/1772025/sql-data-reader-handling-null-column-values
파일 보기 프로젝트 열기: Narvalex/EventCentric

공개 메소드들

메소드 설명
GetBoolean ( this reader, string name ) : bool
GetDateTime ( this reader, string name ) : System.DateTime
GetDecimal ( this reader, string name ) : decimal
GetDouble ( this reader, string name ) : double
GetFloat ( this reader, string name ) : float
GetGuid ( this reader, string name ) : System.Guid
GetInt32 ( this reader, string name ) : int
GetInt64 ( this reader, string name ) : long
GetString ( this reader, string name ) : string
GetValue ( this reader, string column ) : object
SafeGetBoolean ( this reader, int i ) : bool
SafeGetBoolean ( this reader, string name ) : bool
SafeGetBooleanOrNull ( this reader, int i ) : bool?
SafeGetBooleanOrNull ( this reader, string name ) : bool?
SafeGetDateTime ( this reader, int i ) : System.DateTime
SafeGetDateTime ( this reader, string name ) : System.DateTime
SafeGetDateTimeOrNull ( this reader, int i ) : DateTime?
SafeGetDateTimeOrNull ( this reader, string name ) : DateTime?
SafeGetDecimal ( this reader, int i ) : decimal
SafeGetDecimal ( this reader, string name ) : decimal
SafeGetDecimalOrNull ( this reader, int i ) : decimal?
SafeGetDecimalOrNull ( this reader, string name ) : decimal?
SafeGetDouble ( this reader, int i ) : double
SafeGetDouble ( this reader, string name ) : double
SafeGetDoubleOrNull ( this reader, int i ) : double?
SafeGetDoubleOrNull ( this reader, string name ) : double?
SafeGetFloat ( this reader, int i ) : float
SafeGetFloat ( this reader, string name ) : float
SafeGetFloatOrNull ( this reader, int i ) : float?
SafeGetFloatOrNull ( this reader, string name ) : float?
SafeGetGuid ( this reader, int i ) : System.Guid
SafeGetGuid ( this reader, string name ) : System.Guid
SafeGetGuidOrNull ( this reader, int i ) : Guid?
SafeGetGuidOrNull ( this reader, string name ) : Guid?
SafeGetInt32 ( this reader, int i ) : int
SafeGetInt32 ( this reader, string name ) : int
SafeGetInt32OrNull ( this reader, int i ) : int?
SafeGetInt32OrNull ( this reader, string name ) : int?
SafeGetInt64 ( this reader, int i ) : long
SafeGetInt64 ( this reader, string name ) : long
SafeGetInt64OrNull ( this reader, int i ) : long?
SafeGetInt64OrNull ( this reader, string name ) : long?
SafeGetString ( this reader, int i ) : string
SafeGetString ( this reader, string name ) : string
SafeGetStringAndTrim ( this reader, int i ) : string
SafeGetStringAndTrim ( this reader, string name ) : string
SafeGetValue ( this reader, int i ) : object
SafeGetValue ( this reader, string column ) : object

메소드 상세

GetBoolean() 공개 정적인 메소드

public static GetBoolean ( this reader, string name ) : bool
reader this
name string
리턴 bool

GetDateTime() 공개 정적인 메소드

public static GetDateTime ( this reader, string name ) : System.DateTime
reader this
name string
리턴 System.DateTime

GetDecimal() 공개 정적인 메소드

public static GetDecimal ( this reader, string name ) : decimal
reader this
name string
리턴 decimal

GetDouble() 공개 정적인 메소드

public static GetDouble ( this reader, string name ) : double
reader this
name string
리턴 double

GetFloat() 공개 정적인 메소드

public static GetFloat ( this reader, string name ) : float
reader this
name string
리턴 float

GetGuid() 공개 정적인 메소드

public static GetGuid ( this reader, string name ) : System.Guid
reader this
name string
리턴 System.Guid

GetInt32() 공개 정적인 메소드

public static GetInt32 ( this reader, string name ) : int
reader this
name string
리턴 int

GetInt64() 공개 정적인 메소드

public static GetInt64 ( this reader, string name ) : long
reader this
name string
리턴 long

GetString() 공개 정적인 메소드

public static GetString ( this reader, string name ) : string
reader this
name string
리턴 string

GetValue() 공개 정적인 메소드

public static GetValue ( this reader, string column ) : object
reader this
column string
리턴 object

SafeGetBoolean() 공개 정적인 메소드

public static SafeGetBoolean ( this reader, int i ) : bool
reader this
i int
리턴 bool

SafeGetBoolean() 공개 정적인 메소드

public static SafeGetBoolean ( this reader, string name ) : bool
reader this
name string
리턴 bool

SafeGetBooleanOrNull() 공개 정적인 메소드

public static SafeGetBooleanOrNull ( this reader, int i ) : bool?
reader this
i int
리턴 bool?

SafeGetBooleanOrNull() 공개 정적인 메소드

public static SafeGetBooleanOrNull ( this reader, string name ) : bool?
reader this
name string
리턴 bool?

SafeGetDateTime() 공개 정적인 메소드

public static SafeGetDateTime ( this reader, int i ) : System.DateTime
reader this
i int
리턴 System.DateTime

SafeGetDateTime() 공개 정적인 메소드

public static SafeGetDateTime ( this reader, string name ) : System.DateTime
reader this
name string
리턴 System.DateTime

SafeGetDateTimeOrNull() 공개 정적인 메소드

public static SafeGetDateTimeOrNull ( this reader, int i ) : DateTime?
reader this
i int
리턴 DateTime?

SafeGetDateTimeOrNull() 공개 정적인 메소드

public static SafeGetDateTimeOrNull ( this reader, string name ) : DateTime?
reader this
name string
리턴 DateTime?

SafeGetDecimal() 공개 정적인 메소드

public static SafeGetDecimal ( this reader, int i ) : decimal
reader this
i int
리턴 decimal

SafeGetDecimal() 공개 정적인 메소드

public static SafeGetDecimal ( this reader, string name ) : decimal
reader this
name string
리턴 decimal

SafeGetDecimalOrNull() 공개 정적인 메소드

public static SafeGetDecimalOrNull ( this reader, int i ) : decimal?
reader this
i int
리턴 decimal?

SafeGetDecimalOrNull() 공개 정적인 메소드

public static SafeGetDecimalOrNull ( this reader, string name ) : decimal?
reader this
name string
리턴 decimal?

SafeGetDouble() 공개 정적인 메소드

public static SafeGetDouble ( this reader, int i ) : double
reader this
i int
리턴 double

SafeGetDouble() 공개 정적인 메소드

public static SafeGetDouble ( this reader, string name ) : double
reader this
name string
리턴 double

SafeGetDoubleOrNull() 공개 정적인 메소드

public static SafeGetDoubleOrNull ( this reader, int i ) : double?
reader this
i int
리턴 double?

SafeGetDoubleOrNull() 공개 정적인 메소드

public static SafeGetDoubleOrNull ( this reader, string name ) : double?
reader this
name string
리턴 double?

SafeGetFloat() 공개 정적인 메소드

public static SafeGetFloat ( this reader, int i ) : float
reader this
i int
리턴 float

SafeGetFloat() 공개 정적인 메소드

public static SafeGetFloat ( this reader, string name ) : float
reader this
name string
리턴 float

SafeGetFloatOrNull() 공개 정적인 메소드

public static SafeGetFloatOrNull ( this reader, int i ) : float?
reader this
i int
리턴 float?

SafeGetFloatOrNull() 공개 정적인 메소드

public static SafeGetFloatOrNull ( this reader, string name ) : float?
reader this
name string
리턴 float?

SafeGetGuid() 공개 정적인 메소드

public static SafeGetGuid ( this reader, int i ) : System.Guid
reader this
i int
리턴 System.Guid

SafeGetGuid() 공개 정적인 메소드

public static SafeGetGuid ( this reader, string name ) : System.Guid
reader this
name string
리턴 System.Guid

SafeGetGuidOrNull() 공개 정적인 메소드

public static SafeGetGuidOrNull ( this reader, int i ) : Guid?
reader this
i int
리턴 Guid?

SafeGetGuidOrNull() 공개 정적인 메소드

public static SafeGetGuidOrNull ( this reader, string name ) : Guid?
reader this
name string
리턴 Guid?

SafeGetInt32() 공개 정적인 메소드

public static SafeGetInt32 ( this reader, int i ) : int
reader this
i int
리턴 int

SafeGetInt32() 공개 정적인 메소드

public static SafeGetInt32 ( this reader, string name ) : int
reader this
name string
리턴 int

SafeGetInt32OrNull() 공개 정적인 메소드

public static SafeGetInt32OrNull ( this reader, int i ) : int?
reader this
i int
리턴 int?

SafeGetInt32OrNull() 공개 정적인 메소드

public static SafeGetInt32OrNull ( this reader, string name ) : int?
reader this
name string
리턴 int?

SafeGetInt64() 공개 정적인 메소드

public static SafeGetInt64 ( this reader, int i ) : long
reader this
i int
리턴 long

SafeGetInt64() 공개 정적인 메소드

public static SafeGetInt64 ( this reader, string name ) : long
reader this
name string
리턴 long

SafeGetInt64OrNull() 공개 정적인 메소드

public static SafeGetInt64OrNull ( this reader, int i ) : long?
reader this
i int
리턴 long?

SafeGetInt64OrNull() 공개 정적인 메소드

public static SafeGetInt64OrNull ( this reader, string name ) : long?
reader this
name string
리턴 long?

SafeGetString() 공개 정적인 메소드

public static SafeGetString ( this reader, int i ) : string
reader this
i int
리턴 string

SafeGetString() 공개 정적인 메소드

public static SafeGetString ( this reader, string name ) : string
reader this
name string
리턴 string

SafeGetStringAndTrim() 공개 정적인 메소드

public static SafeGetStringAndTrim ( this reader, int i ) : string
reader this
i int
리턴 string

SafeGetStringAndTrim() 공개 정적인 메소드

public static SafeGetStringAndTrim ( this reader, string name ) : string
reader this
name string
리턴 string

SafeGetValue() 공개 정적인 메소드

public static SafeGetValue ( this reader, int i ) : object
reader this
i int
리턴 object

SafeGetValue() 공개 정적인 메소드

public static SafeGetValue ( this reader, string column ) : object
reader this
column string
리턴 object