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

Overriding Collection Name in MongoDb

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.8.1
    • None
    • Windows 2008, Windows 7

    Description

      I have a .Net object named CacheItem<T> that gets persisted to MongoDb. When the object gets persisted, the name of the collection becomes CacheItem`1. If I try to use and shell commands against that document I get 'javascript illegal' error message due to the name that contains the tick mark, '`'. Is there a way to set the name of the object so that it isnt named as such?

      Attachments

        Activity

          People

            Unassigned Unassigned
            joetherod joseph rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: