C# Class JPB.DataAccess.Query.GenericQueryPart

Wrapper for Generic QueryCommand parts
Inheritance: ICloneable
Show file Open project: JPVenson/DataAccess Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

FromCommand ( IDbCommand command, IQueryElement builder ) : GenericQueryPart

Wrapps the given command into a new QueryPart by storing its QueryCommand statement and parameter

GenericQueryPart ( string prefix ) : System

Creates a generic query part that can be used for any query

GenericQueryPart ( string prefix, IEnumerable parameters, IQueryBuilder builder ) : System

Creates a generic query part that can be used for any query

Render ( ) : string

For display

ToString ( ) : string

Private Methods

Method Description
Render ( StringBuilderInterlaced sb ) : void

For display

Method Details

Clone() public method

public Clone ( ) : object
return object

FromCommand() public static method

Wrapps the given command into a new QueryPart by storing its QueryCommand statement and parameter
public static FromCommand ( IDbCommand command, IQueryElement builder ) : GenericQueryPart
command IDbCommand
builder IQueryElement
return GenericQueryPart

GenericQueryPart() public method

Creates a generic query part that can be used for any query
public GenericQueryPart ( string prefix ) : System
prefix string
return System

GenericQueryPart() public method

Creates a generic query part that can be used for any query
public GenericQueryPart ( string prefix, IEnumerable parameters, IQueryBuilder builder ) : System
prefix string
parameters IEnumerable
builder IQueryBuilder The type of building object
return System

Render() public method

For display
public Render ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string