Click or drag to resize

IQueryBuilderHackHackQuery Method

Hacks the query in some manner.

Namespace: SanteDB.OrmLite
Assembly: SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 3.0.2081-alpha+d0a78774d3f97b9193d2ae2fef6d129ea9f29519
Syntax
bool HackQuery(
	QueryBuilder builder,
	SqlStatementBuilder sqlStatementBuilder,
	SqlStatementBuilder whereClause,
	Type tmodel,
	PropertyInfo property,
	string queryPrefix,
	QueryPredicate predicate,
	string[] values,
	IEnumerable<TableMapping> scopedTables,
	IDictionary<string, string[]> queryFilter
)

Parameters

builder  QueryBuilder
The query builder that will be used to assemble a hacked WHERE clause.
sqlStatementBuilder  SqlStatementBuilder
The current vanilla (no WHERE clause) query.
whereClause  SqlStatementBuilder
The current where clause
tmodel  Type
The type being queried.
property  PropertyInfo
The property which is currently being hacked
queryPrefix  String
The prefix appended to any identifiers in the query. In a database, this will often be the schema or database name.
predicate  QueryPredicate
The current predicate
values  String
The values to use with the comparsion that this hack generates.
scopedTables  IEnumerableTableMapping
The tables that are scoped for the current query
queryFilter  IDictionaryString, String

Return Value

Boolean
True if the whereClause was modified by this hack, False otherwise.
See Also