Need an implicit conversion from Enums to Bson values

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Minor - P4
    • 1.0
    • Affects Version/s: 0.9
    • Component/s: None
    • None
    • Environment:
      Win 7
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Implicit conversions are provided for most types but not for Enums. This makes querying for an Enum harder than it needs to be.

      Suggest adding this into the BsonValue class:

      public static implicit operator BsonValue(Enum value)

      { return BsonTypeMapper.MapToBsonValue(value); }

              Assignee:
              Robert Stam
              Reporter:
              Ian Mercer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: