コード例 #1
0
ファイル: CQ.cs プロジェクト: 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);
 }
コード例 #2
0
ファイル: CQValue.cs プロジェクト: Necroskillz/CodeCaml
 /// <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);
 }
コード例 #3
0
ファイル: CQOperatorElement.cs プロジェクト: Sowz/CodeCaml
 public ICQOperatorElementValue Value(DateTime value, CQValueOption options)
 {
     _elements.Add(CQ.Value(value, options));
     return this;
 }