Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-179

Add an Implicit cast from HashTable to BsonDocument to make it easier to use the driver in powershell

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Windows Powershell 2.0. Not tested in PS 1.0

      Powershell has great native support for HashTables via the @

      { "key"="value; . . .}

      syntax.. This simple implicit cast allows you to take adtantage of this notation in Powershell to create MongoDocuments..

      I also documented how to use this syntax in powershell.

      Commit:
      https://github.com/zippy1981/mongo-csharp-driver/commit/bae9c497a9f93360b51458f9dc55a71ed7723687

      Screenshots of .chm file compiled with sandcastle:
      https://picasaweb.google.com/zippy1981/Screenshots?authkey=Gv1sRgCPvkkdCensaenwE#5580322422059182802
      https://picasaweb.google.com/zippy1981/Screenshots?authkey=Gv1sRgCPvkkdCensaenwE#5580322419345520482

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            zippy1981 Justin Dearing
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: