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

Database collections created by the c# driver do not prepend the "<dbname>." to the collection name

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      Database collections created by the c# driver do not prepend the "<dbname>." to the collection name
      Example:
      /* Prerequisite: testdb does not exist */
      Mongo mongo = new Mongo();
      mongo.Connect();
      Database db = mongo["testdb"];
      db["testcollection"].Insert(new

      { Doc = "Doc" }

      );

      -> Expected: the created collection name is "testdb.testcollection"
      -> Observed: the created collection name is "testcollection"

      OBS: Verified with the mongo.exe command-line tool

      Attachments

        Activity

          People

            sam Sam Corder
            felipecsl Felipe Lima
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: