C# Class NSoft.NFramework.Data.MySql.MySqlRepositoryImpl

MySql을 사용하기 위한 IAdoRepository를 구현한 클래스입니다. 비동기 IO 작업을 통해 확장성이 획기적으로 좋아졌습니다. 동시 처리 허용범위가 커졌습니다. NOTE: Command를 중복해서 사용하면 안됩니다. (비동기 방식이라 다른 작업에서 Command의 Connection이 닫힐 수 있습니다) NOTE: 중복 사용을 하고 싶다면, 메소드 호출 전에 Command에 Connection을 미리 지정해 주고, 모든 비동기 작업이 끝난 후에 Connection을 닫아야 합니다.
Inheritance: AdoRepositoryImplBase, IMySqlRepository
Mostrar archivo Open project: debop/NFramework

Public Methods

Method Description
ExecuteDataSet ( DbCommand cmd, int firstResult, int maxResults ) : DataSet

cmd를 실행하여, 결과를 DataSet으로 반환합니다.

ExecuteDataTable ( DbCommand cmd, int firstResult, int maxResults ) : DataTable

지정된 Command를 실행하여, DataTable을 빌드합니다.

ExecuteDataTableAsList ( DbCommand cmd, int firstResult, int maxResults ) : IList

여러 ResultSet을 반환할 수 있으므로, DataTable의 컬렉션으로 반환합니다.

MySqlRepositoryImpl ( ) : System.Collections.Generic

생성자

MySqlRepositoryImpl ( string dbName ) : System.Collections.Generic

생성자

Protected Methods

Method Description
ExecuteNonQueryInternal ( DbCommand cmd ) : int

지정된 Command의 ExecuteNonQuery 메소드를 실행합니다.

ExecuteReaderInternal ( DbCommand cmd ) : IDataReader

지정된 Command의 ExecuteReader 메소드를 실행합니다.

ExecuteScalarInternal ( DbCommand cmd ) : object

지정된 Command의 ExecuteScalar 메소드를 실행합니다.

Method Details

ExecuteDataSet() public method

cmd를 실행하여, 결과를 DataSet으로 반환합니다.
public ExecuteDataSet ( DbCommand cmd, int firstResult, int maxResults ) : DataSet
cmd DbCommand 실행할 instance.
firstResult int 첫번째 레코드의 인덱스 (0부터 시작)
maxResults int 최대 레코드 수 (0 이면 무시하고, 마지막 레코드까지 가져온다
return System.Data.DataSet

ExecuteDataTable() public method

지정된 Command를 실행하여, DataTable을 빌드합니다.
public ExecuteDataTable ( DbCommand cmd, int firstResult, int maxResults ) : DataTable
cmd DbCommand 실행할 Select용 Command
firstResult int 첫번째 레코드의 인덱스 (0부터 시작)
maxResults int 최대 레코드 수 (0 이면 무시하고, 마지막 레코드까지 가져온다
return System.Data.DataTable

ExecuteDataTableAsList() public method

여러 ResultSet을 반환할 수 있으므로, DataTable의 컬렉션으로 반환합니다.
public ExecuteDataTableAsList ( DbCommand cmd, int firstResult, int maxResults ) : IList
cmd DbCommand
firstResult int
maxResults int
return IList

ExecuteNonQueryInternal() protected method

지정된 Command의 ExecuteNonQuery 메소드를 실행합니다.
protected ExecuteNonQueryInternal ( DbCommand cmd ) : int
cmd DbCommand 실행할 Command 객체
return int

ExecuteReaderInternal() protected method

지정된 Command의 ExecuteReader 메소드를 실행합니다.
protected ExecuteReaderInternal ( DbCommand cmd ) : IDataReader
cmd DbCommand
return IDataReader

ExecuteScalarInternal() protected method

지정된 Command의 ExecuteScalar 메소드를 실행합니다.
protected ExecuteScalarInternal ( DbCommand cmd ) : object
cmd DbCommand 실행할 Command 객체
return object

MySqlRepositoryImpl() public method

생성자
public MySqlRepositoryImpl ( ) : System.Collections.Generic
return System.Collections.Generic

MySqlRepositoryImpl() public method

생성자
public MySqlRepositoryImpl ( string dbName ) : System.Collections.Generic
dbName string database connectionString section name
return System.Collections.Generic