C# 클래스 Adf.Data.DatabaseQueryHandler

Repesents a service handler that is dependent to the use of RowState for database tranaction. Provides the actual database handling for Select, Delete, Insert and Update data.
상속: IAdfQueryHandler
파일 보기 프로젝트 열기: NLADP/ADF

공개 메소드들

메소드 설명
Delete ( IAdfQuery query ) : int
New ( IAdfQuery query ) : IInternalState

Create a new data row of IInternalState to insert new data into database.

Run ( IAdfQuery query ) : IInternalState

Executes a specified IAdfQuery statement and returns the affected row of data.

RunAndSplit ( IAdfQuery query ) : IEnumerable

Executes the specified query and return the result, where each row in the result is stored in an instance of IInternalState.

RunScalar ( IAdfQuery query ) : object

Executes the IAdfQuery, and returns the first column of the first row in the resultset returned by the IAdfQuery. Extra columns or rows are ignored.

Save ( IAdfQuery query, IInternalState data ) : bool

Save the specified data of IInternalState into database.

보호된 메소드들

메소드 설명
IsResultEmpty ( DataSet set ) : bool

비공개 메소드들

메소드 설명
RunQuery ( IAdfQuery query ) : DataSet

Runs the specified IAdfQuery and get the executed result set into a System.Data.DataSet.

메소드 상세

Delete() 공개 메소드

public Delete ( IAdfQuery query ) : int
query IAdfQuery
리턴 int

IsResultEmpty() 보호된 메소드

protected IsResultEmpty ( DataSet set ) : bool
set System.Data.DataSet
리턴 bool

New() 공개 메소드

Create a new data row of IInternalState to insert new data into database.
public New ( IAdfQuery query ) : IInternalState
query IAdfQuery The that defines the datasource name and query statement.
리턴 IInternalState

Run() 공개 메소드

Executes a specified IAdfQuery statement and returns the affected row of data.
public Run ( IAdfQuery query ) : IInternalState
query IAdfQuery The that defines the datasource name and query statement.
리턴 IInternalState

RunAndSplit() 공개 메소드

Executes the specified query and return the result, where each row in the result is stored in an instance of IInternalState.
public RunAndSplit ( IAdfQuery query ) : IEnumerable
query IAdfQuery The that defines the datasource name and query statement.
리턴 IEnumerable

RunScalar() 공개 메소드

Executes the IAdfQuery, and returns the first column of the first row in the resultset returned by the IAdfQuery. Extra columns or rows are ignored.
The current state of the connection is closed.
public RunScalar ( IAdfQuery query ) : object
query IAdfQuery The that defines the datasource name and query statement.
리턴 object

Save() 공개 메소드

Save the specified data of IInternalState into database.
The current state of the connection is closed. An attempt to execute an INSERT, UPDATE, or DELETE statement resulted in zero records affected.
public Save ( IAdfQuery query, IInternalState data ) : bool
query IAdfQuery The that defines the datasource name and query statement.
data IInternalState The data of that needs to be saved.
리턴 bool