Class MultiDurationExtensions
Helper methods for MultiDurations dealing with TCQL statements and range extensions.
Inheritance
Inherited Members
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public static class MultiDurationExtensions
Methods
BuildMultiDurationPredicate(out String, out ICollection<QueryParameter>, MultiDuration, String)
Creates a condition for a TCQL expression, where a point signal described by a eventTime is checked against whether any of the multi duration parts touches the duration signal
Declaration
public static void BuildMultiDurationPredicate(out string predicate, out ICollection<QueryParameter> queryParams, MultiDuration multiDuration, string signalEventTimeProperty)
Parameters
Type | Name | Description |
---|---|---|
System.String | predicate | resulting predicate string |
System.Collections.Generic.ICollection<QueryParameter> | queryParams | queryparameters to add to the final query. |
MultiDuration | multiDuration | multi duration to create conditional for. |
System.String | signalEventTimeProperty | string describing the event time field of the entity to check. |
BuildMultiDurationPredicate(out String, out ICollection<QueryParameter>, MultiDuration, String, String)
Creates a condition for a TCQL expression, where a duration signal described by signalBegin and signalEnd is checked against whether any of the multi duration parts touches the duration signal
Declaration
public static void BuildMultiDurationPredicate(out string predicate, out ICollection<QueryParameter> queryParams, MultiDuration multiDuration, string signalBeginProperty, string signalEndProperty)
Parameters
Type | Name | Description |
---|---|---|
System.String | predicate | resulting predicate string |
System.Collections.Generic.ICollection<QueryParameter> | queryParams | queryparameters to add to the final query. |
MultiDuration | multiDuration | multi duration to create conditional for. |
System.String | signalBeginProperty | string describing the begin field of the entity to check. |
System.String | signalEndProperty | string describing the end field of the entity to check. |