LINQ does not support DateTime comparisons

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.4.1
    • Affects Version/s: 1.4
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Following exception occurs when applying a comparison operator on a field of type DateTime:

      Unsupported where clause: (DateTime:(2012-04-03T12:45:32.5348776Z) < s.CreatedOn)

      The query is as follows:

      .Where(s => DateTime.UtcNow < s.ExpireOn)

      Note: This is supported by FluentMongo

              Assignee:
              Robert Stam
              Reporter:
              Zaid Masud
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: