C# Class Adf.Core.Query.QueryManager

Datei anzeigen Open project: NLADP/ADF

Public Methods

Method Description
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.

Private Methods

Method Description
Get ( DataSources type ) : IQueryParser
GetHandler ( DataSources source ) : IAdfQueryHandler

Method Details

Delete() public static method

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

New() public static method

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.
return IInternalState

Parse() public static method

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

Run() public static method

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.
return IInternalState

RunScalar() public static method

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.
return object

RunSplit() public static method

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.
return IEnumerable

Save() public static method

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.
return bool