Class SmartSearchSqlQueryHelper
- Namespace
- Dynamicweb.Smart
Search
- Assembly
- Dynamicweb.Core.dll
Represents smart search Sql query helper
- Inheritance
-
Smart
Search Sql Query Helper
- Inherited Members
Methods
ConvertToDate(string)
Returns date value of given object
Parameters
value
stringValue to be converted to string
Returns
ConvertToString(object)
Returns string version of given object
Parameters
value
objectValue to be converted to string
Returns
EscapeValue(string?)
Returns value ready for query
Parameters
value
string
Returns
EscapeValueForLike(string?, char)
Returns value ready for query with like operator
Parameters
Returns
Format(DateTime)
Returns formated date value as string
Parameters
dt
DateTime DateTime value to be converted to string
Returns
GetAuditFilter(SmartSearchRule)
Builds filter with conditions based on user audit information into sql query string for given property
Parameters
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetBooleanFilter(PropertyInfo, SmartSearchRule)
Builds boolean filter into sql query string for given property
Parameters
pi
PropertyInfo User property information
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetBooleanWherePart(string, SmartSearchRule)
Returns where part based on rule with boolean values
Parameters
fieldName
stringSql field name
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetCustomFilter(CustomField, SmartSearchRule)
Returns where part based on rule with custom fields
Parameters
customField
CustomField User custom field
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetDateTimeFilter(PropertyInfo, SmartSearchRule)
Builds string filter into sql query string for given property
Parameters
pi
PropertyInfo User property information
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetDateWherePart(string, SmartSearchRule)
Returns where part based on rule with date values
Parameters
fieldName
stringSql field name
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetDateWherePart(string, string, SmartSearchRule)
Returns where part based on rule with date values
Parameters
tableName
stringSql table name
fieldName
stringSql field name
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetFloatWherePart(string, SmartSearchRule)
Returns where part based on rule with float values
Parameters
fieldName
stringSql field name
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetFloatWherePart(string, string, SmartSearchRule)
Returns where part based on rule with float values
Parameters
tableName
stringSql table name
fieldName
stringSql field name
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetIntegerFilter(PropertyInfo, SmartSearchRule)
Builds integer filter into sql query string for given property
Parameters
pi
PropertyInfo User property information
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetIntegerWherePart(string, SmartSearchRule)
Returns where part based on rule with integer values
Parameters
fieldName
stringSql field name
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetIntegerWherePart(string, string, SmartSearchRule)
Returns where part based on rule with integer values
Parameters
tableName
stringSql table name
fieldName
stringSql field name
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetIsAdminFilter(SmartSearchRule)
Builds filter with conditions based on is user type is admin into sql query string for given property
Parameters
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetStringFilter(PropertyInfo, SmartSearchRule)
Builds string filter into sql query string for given property
Parameters
pi
PropertyInfo User property information
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetStringWherePart(string, SmartSearchRule)
Returns where part based on rule with string values
Parameters
fieldName
stringSql field name
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetUserIdWherePart(string, SmartSearchRule)
Returns where part based on rule with User id conditions
Parameters
fieldName
stringSQL field name
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
GetUserTypeFilter(PropertyInfo, SmartSearchRule)
Builds string filter into sql query string for given property
Parameters
pi
PropertyInfo User property information
rule
SmartSearch Rule SmartSearch rule as base for query
Returns
RenderOperator(SmartSearchRuleOperator)
Render SmartSerach rule operator into string for sql query
Parameters
Returns
RenderValue(IEnumerable<int>)
Render IEnumerable(Of Integer) into string for sql query
Parameters
value
IEnumerable<int>
Returns
RenderValue(IEnumerable<string>)
Render IEnumerable(Of String) into string for sql query
Parameters
value
IEnumerable<string>
Returns
RenderValue(DateTime)
Render DateTime value into string for sql query
Parameters
value
DateTime
Returns
RenderValue(int)
Render Integer value into string for sql query
Parameters
value
int
Returns
RenderValue(object?)
Render Object value into string for sql query
Parameters
value
object
Returns
RenderValue(string?)
Render String value into string for sql query
Parameters
value
string