Method | Description | |
---|---|---|
CriteriaDB ( Criteria criteria ) : System |
Constructor for a Database critieria. takes the Criteria object that it wraps as a parameter.
|
|
ToString ( ) : string |
Returns a
|
|
ToString ( ISqlFormatter formatter, AddParameterDelegate addParameter ) : string |
Converts this Criteria to a string for use in a sql statement.
|
|
ToString ( ISqlFormatter formatter, AddParameterDelegate addParameter, string>.IDictionary |
Converts this Criteria object to a string, using field names instead of property names and entity names (aliased) instead of source names. The AddParameterDelegate allows a database query builder to create a parameter value when adding the value to the string for use with parametrized SQL. Also see ISqlStatement. The ToString() method uses this method with a simple delegate that converts DateTimes and Guids to sensible string representations and to Provide a set of aliases to replace entity names with their aliases.
|
public CriteriaDB ( Criteria criteria ) : System | ||
criteria | Criteria | The criteria object being wrapped. |
return | System |
public ToString ( ISqlFormatter formatter, AddParameterDelegate addParameter ) : string | ||
formatter | ISqlFormatter | The formatter to use |
addParameter | AddParameterDelegate | A delegate defining how to add a parameter to the string. |
return | string |
public ToString ( ISqlFormatter formatter, AddParameterDelegate addParameter, string>.IDictionary |
||
formatter | ISqlFormatter | A formatter for any specific database |
addParameter | AddParameterDelegate | The delegate to use to convert the value in object form to a value in string form.
/// See |
aliases | string>.IDictionary | The mapping of aliases to use |
return | string |