Class QueryCondition
- Namespace
- Dynamicweb.Tracking.Reporting
- Assembly
- Dynamicweb.Core.dll
Represents a query condition.
public class QueryCondition
- Inheritance
-
QueryCondition
- Inherited Members
Constructors
QueryCondition(string, OperatorType)
Initializes a new instance of the QueryCondition class.
public QueryCondition(string name, OperatorType operatorType)
Parameters
name
stringThe name.
operatorType
OperatorTypeType of the operator.
QueryCondition(string, OperatorType, object)
Initializes a new instance of the QueryCondition class.
public QueryCondition(string name, OperatorType operatorType, object value)
Parameters
name
stringThe name.
operatorType
OperatorTypeType of the operator.
value
objectThe value.
QueryCondition(string, string, OperatorType)
Initializes a new instance of the QueryCondition class.
public QueryCondition(string name, string foreignName, OperatorType operatorType)
Parameters
name
stringThe name.
foreignName
stringThe foreign name.
operatorType
OperatorTypeType of the operator.
Properties
AllowUnsafeColumnNames
Gets or sets a value indicating whether unsafe column names are allowed.
public bool AllowUnsafeColumnNames { get; set; }
Property Value
- bool
true
if unsafe column names are allowed; otherwise,false
.
ForeignName
Gets the foreign name.
public string? ForeignName { get; }
Property Value
- string
The foreign name.
Name
Gets the name.
public string Name { get; }
Property Value
- string
The name.
Operator
Gets the operator.
public OperatorType Operator { get; }
Property Value
- OperatorType
The operator.
Value
Gets the value.
public object? Value { get; }
Property Value
- object
The value.
Methods
GetExpressionPlaceholder(int)
Gets the expression placeholder.
public string? GetExpressionPlaceholder(int valuePlaceholder = 0)
Parameters
valuePlaceholder
intThe value placeholder.