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
namestringThe name.
operatorTypeOperatorTypeType of the operator.
QueryCondition(string, OperatorType, object)
Initializes a new instance of the QueryCondition class.
public QueryCondition(string name, OperatorType operatorType, object value)
Parameters
namestringThe name.
operatorTypeOperatorTypeType of the operator.
valueobjectThe value.
QueryCondition(string, string, OperatorType)
Initializes a new instance of the QueryCondition class.
public QueryCondition(string name, string foreignName, OperatorType operatorType)
Parameters
namestringThe name.
foreignNamestringThe foreign name.
operatorTypeOperatorTypeType 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
trueif 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
valuePlaceholderintThe value placeholder.