C# Class DataAccessFramework.Querying.FieldReference

A part in a where clause that references a field in one of the included tables.
Inheritance: WherePart
Show file Open project: PeteProgrammer/DataAccessFramework Class Usage Examples

Public Methods

Method Description
EqualTo ( FieldReference field ) : EqualsClause
EqualTo ( bool value ) : EqualsClause
EqualTo ( int value ) : EqualsClause

Generates an EqualsClause for this field

EqualTo ( long value ) : EqualsClause

Generates an EqualsClause for this field

EqualTo ( string value ) : EqualsClause

Generates an EqualsClause for this field

FieldReference ( QueryTable table, string fieldName ) : System

Creates a new FieldReference instance.

LessThan ( System.DateTime value ) : WherePart
StartsWith ( string name ) : WherePart

Private Methods

Method Description
BuildSql ( BuildSqlContext context ) : void

Builds the SQL for this field reference.

Method Details

EqualTo() public method

public EqualTo ( FieldReference field ) : EqualsClause
field FieldReference
return EqualsClause

EqualTo() public method

public EqualTo ( bool value ) : EqualsClause
value bool
return EqualsClause

EqualTo() public method

Generates an EqualsClause for this field
public EqualTo ( int value ) : EqualsClause
value int
return EqualsClause

EqualTo() public method

Generates an EqualsClause for this field
public EqualTo ( long value ) : EqualsClause
value long
return EqualsClause

EqualTo() public method

Generates an EqualsClause for this field
public EqualTo ( string value ) : EqualsClause
value string
return EqualsClause

FieldReference() public method

Creates a new FieldReference instance.
public FieldReference ( QueryTable table, string fieldName ) : System
table QueryTable The table that we are referencing
fieldName string The name of the field
return System

LessThan() public method

public LessThan ( System.DateTime value ) : WherePart
value System.DateTime
return WherePart

StartsWith() public method

public StartsWith ( string name ) : WherePart
name string
return WherePart