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

Make C# driver more Powershell (and metadata driven programming) friendly

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.1
    • Affects Version/s: 1.0
    • Component/s: Feature Request
    • None

      In Powershell it is very difficult to call generic methods. In metadata driven programming the type argument to the generic method is not known at compile time, which makes generic methods inappropriate even in C# sometimes.

      Add non-generic versions of the following methods:

      BsonExtensionMethods
      ToBson
      ToBsonDocument
      ToJson

      BsonDocumentWrapper
      Create
      CreateMultiple

      UpdateBuilder
      AddToSetEachWrapped
      AddToSetWrapped
      PullAllWrapped
      PullWrapped
      PushAllWrapped
      PushWrapped
      Replace
      SetWrapped

      FindAndModifyResult
      GetModifiedDocumentAs

      MapReduceResult
      GetInlineResultsAs
      GetResultsAs

      MongoCollection
      FindAllAs
      FindAs
      FindOneAs
      FindOneByIdAs
      GeoNearAs
      Save

      MongoCursor
      Clone

      MongoDatabase
      CreateCollectionSettings
      FetchDBRefAs
      GetCollection
      RunCommandAs

      MongoServer
      FetchDBRefAs
      RunAdminCommandAs

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: