C# Class Castle.ActiveRecord.Queries.Modifiers.QueryParameter

Represents a query parameter.
Inheritance: IQueryModifier
ファイルを表示 Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
Apply ( IQuery query ) : void

Add this parameter to the query.

Is there a cleaner way to do this, without reflection or complex hierarchies?

QueryParameter ( String name, ICollection value ) : System

Initializes a new instance of the QueryParameter class.

QueryParameter ( String name, ICollection value, IType type ) : System

Initializes a new instance of the QueryParameter class.

QueryParameter ( String name, Object value, IType type ) : System

Initializes a new instance of the QueryParameter class.

QueryParameter ( int position, ICollection value ) : System It is important to keep this constructor as is, to avoid confusion with the QueryParameter(int, object) overload.
QueryParameter ( int position, ICollection value, IType type ) : System It is important to keep this constructor as is, to avoid confusion with the QueryParameter(int, object, IType) overload.
QueryParameter ( int position, object value ) : System

Initializes a new instance of the QueryParameter class.

QueryParameter ( int position, object value, IType type ) : System

Initializes a new instance of the QueryParameter class.

QueryParameter ( string name, object value ) : System

Initializes a new instance of the QueryParameter class.

Private Methods

Method Description
IsFlagged ( ParameterFlags flag ) : bool

Method Details

Apply() public method

Add this parameter to the query.
Is there a cleaner way to do this, without reflection or complex hierarchies?
public Apply ( IQuery query ) : void
query IQuery The query
return void

QueryParameter() public method

Initializes a new instance of the QueryParameter class.
public QueryParameter ( String name, ICollection value ) : System
name String The name.
value ICollection The value.
return System

QueryParameter() public method

Initializes a new instance of the QueryParameter class.
public QueryParameter ( String name, ICollection value, IType type ) : System
name String The name.
value ICollection The value.
type IType The type.
return System

QueryParameter() public method

Initializes a new instance of the QueryParameter class.
public QueryParameter ( String name, Object value, IType type ) : System
name String The name.
value Object The value.
type IType The type.
return System

QueryParameter() public method

It is important to keep this constructor as is, to avoid confusion with the QueryParameter(int, object) overload.
public QueryParameter ( int position, ICollection value ) : System
position int
value ICollection
return System

QueryParameter() public method

It is important to keep this constructor as is, to avoid confusion with the QueryParameter(int, object, IType) overload.
public QueryParameter ( int position, ICollection value, IType type ) : System
position int
value ICollection
type IType
return System

QueryParameter() public method

Initializes a new instance of the QueryParameter class.
public QueryParameter ( int position, object value ) : System
position int The position.
value object The value.
return System

QueryParameter() public method

Initializes a new instance of the QueryParameter class.
public QueryParameter ( int position, object value, IType type ) : System
position int The position.
value object The value.
type IType The type.
return System

QueryParameter() public method

Initializes a new instance of the QueryParameter class.
public QueryParameter ( string name, object value ) : System
name string The name.
value object The value.
return System