Ejemplo n.º 1
0
Archivo: CQ.cs Proyecto: Sowz/CodeCaml
 /// <summary>
 ///     Inserts &lt;Value&gt; element with specified value and specifies whether to include time value in the comparison. Type will be 'DateTime'.
 /// </summary>
 public static CQValueElement Value(DateTime value, CQValueOption options)
 {
     return new CQValueElement(value.ToString("yyyy-MM-ddTHH:mm:ssZ", CultureInfo.InvariantCulture),
                               CQValueType.DateTime.ToString(),
                               (options & CQValueOption.IncludeTimeValue) != 0);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Inserts &lt;Now&gt; element. Specifies if time value should be included in comparison.
 /// </summary>
 public CQValueElement Now(CQValueOption options)
 {
     return new CQValueElement(new CQNowElement(), CQValueType.DateTime.ToString(), (options & CQValueOption.IncludeTimeValue) != 0);
 }
Ejemplo n.º 3
0
 public ICQOperatorElementValue Value(DateTime value, CQValueOption options)
 {
     _elements.Add(CQ.Value(value, options));
     return this;
 }