Class ScalarFilter
Class used for describing match criteria for a query.
Inheritance
Implements
Namespace: MESL.SqlRace.Domain.Query
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class ScalarFilter : Object, IFilter
Constructors
ScalarFilter(String, MatchingRule, Boolean)
Initializes a new instance of the ScalarFilter class.
Declaration
public ScalarFilter(string itemName, MatchingRule rule, bool specifiedValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemName | Name of the item. |
MatchingRule | rule | The rule. |
System.Boolean | specifiedValue | The specified value. |
ScalarFilter(String, MatchingRule, DateTime)
Initializes a new instance of the ScalarFilter class.
Declaration
public ScalarFilter(string itemName, MatchingRule rule, DateTime specifiedValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemName | Name of the item. |
MatchingRule | rule | The rule. |
System.DateTime | specifiedValue | The specified value. |
ScalarFilter(String, MatchingRule, Double)
Initializes a new instance of the ScalarFilter class.
Declaration
public ScalarFilter(string itemName, MatchingRule rule, double specifiedValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemName | Name of the item. |
MatchingRule | rule | The rule. |
System.Double | specifiedValue | The specified value. |
ScalarFilter(String, MatchingRule, Int64)
Initializes a new instance of the ScalarFilter class.
Declaration
public ScalarFilter(string itemName, MatchingRule rule, long specifiedValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemName | Name of the item. |
MatchingRule | rule | The rule. |
System.Int64 | specifiedValue | The specified value. |
ScalarFilter(String, MatchingRule, String, Boolean)
Initialises a new instance of the ScalarFilter class.
Declaration
public ScalarFilter(string itemName, MatchingRule rule, string specifiedValue, bool ignoreCase)
Parameters
Type | Name | Description |
---|---|---|
System.String | itemName | Name of the item to query against. |
MatchingRule | rule | The matching rule. |
System.String | specifiedValue | The expected value. |
System.Boolean | ignoreCase | If set to |
Fields
DateFormat
The date format string when querying with a ScalarFilter
Declaration
public const string DateFormat = "yyyy-MM-dd HH:mm:ss.fff"
Field Value
Type | Description |
---|---|
System.String |
Properties
CombineType
Gets or sets the type of the combination with other match criteria.
Declaration
public CombineType CombineType { get; set; }
Property Value
Type | Description |
---|---|
CombineType |
IgnoreCase
Gets or sets a value indicating whether to ignore case in matches.
Declaration
public bool IgnoreCase { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ItemName
Gets or sets the name of the item to match against.
Declaration
public string ItemName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Rule
Gets or sets the rule for matching.
Declaration
public MatchingRule Rule { get; set; }
Property Value
Type | Description |
---|---|
MatchingRule |
SpecifiedValue
Gets or sets the specified value to match.
Declaration
public string SpecifiedValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
IsMatch(ISessionSummary)
Determines whether the specified result is match.
Declaration
public bool IsMatch(ISessionSummary sessionSummary)
Parameters
Type | Name | Description |
---|---|---|
ISessionSummary | sessionSummary | The session summary. |
Returns
Type | Description |
---|---|
System.Boolean | Returns |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |