C# 클래스 Adf.Core.Query.QueryManager

파일 보기 프로젝트 열기: NLADP/ADF

공개 메소드들

메소드 설명
Delete ( DataSources dataSource, IAdfQuery query ) : int
New ( DataSources datasource, IAdfQuery query ) : IInternalState

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

Parse ( DataSources type, IAdfQuery query ) : string
Run ( DataSources datasource, IAdfQuery query ) : IInternalState

Executes a specified IAdfQuery statement and returns the affected row.

RunScalar ( DataSources datasource, IAdfQuery query ) : object

Provides the first column of the first row from the query resultset. Extra columns or rows are ignored.

RunSplit ( DataSources datasource, IAdfQuery query ) : IEnumerable

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

Save ( DataSources datasource, IAdfQuery query, IInternalState state ) : bool

Saved the specified data of IInternalState into database.

비공개 메소드들

메소드 설명
Get ( DataSources type ) : IQueryParser
GetHandler ( DataSources source ) : IAdfQueryHandler

메소드 상세

Delete() 공개 정적인 메소드

public static Delete ( DataSources dataSource, IAdfQuery query ) : int
dataSource Adf.Core.Data.DataSources
query IAdfQuery
리턴 int

New() 공개 정적인 메소드

Create a new data state of IInternalState to insert data into database.
The current state of the connection is closed.
public static New ( DataSources datasource, IAdfQuery query ) : IInternalState
datasource Adf.Core.Data.DataSources
query IAdfQuery The that defines the datasource name and query statement.
리턴 IInternalState

Parse() 공개 정적인 메소드

public static Parse ( DataSources type, IAdfQuery query ) : string
type Adf.Core.Data.DataSources
query IAdfQuery
리턴 string

Run() 공개 정적인 메소드

Executes a specified IAdfQuery statement and returns the affected row.
The current state of the connection is closed.
public static Run ( DataSources datasource, IAdfQuery query ) : IInternalState
datasource Adf.Core.Data.DataSources
query IAdfQuery The that defines the datasource name and query statement.
리턴 IInternalState

RunScalar() 공개 정적인 메소드

Provides the first column of the first row from the query resultset. Extra columns or rows are ignored.
The current state of the connection is closed.
public static RunScalar ( DataSources datasource, IAdfQuery query ) : object
datasource Adf.Core.Data.DataSources
query IAdfQuery The that defines the datasource name and query statement.
리턴 object

RunSplit() 공개 정적인 메소드

Executes the specified query and return the result, where each row in the result is stored in an instance of IInternalState.
The current state of the connection is closed.
public static RunSplit ( DataSources datasource, IAdfQuery query ) : IEnumerable
datasource Adf.Core.Data.DataSources
query IAdfQuery The that defines the datasource name and query statement.
리턴 IEnumerable

Save() 공개 정적인 메소드

Saved the specified data of IInternalState into database.
The current state of the connection is closed.
public static Save ( DataSources datasource, IAdfQuery query, IInternalState state ) : bool
datasource Adf.Core.Data.DataSources the datasource to run the query against
query IAdfQuery The that defines the datasource name and query statement.
state IInternalState The data of that needs to be saved.
리턴 bool