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

Can't Create Database

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.1
    • Operations
    • None
    • MongoDB 3.1.5

    Description

      I want to create a database via C#
      the code can't work as below:
      var db = mongoSvr.GetDatabase(dbName);

      but if I create a collection just after GetDatabase,new database and collection is append to the server.

      Attachments

        Activity

          People

            Unassigned Unassigned
            MagicHu Hu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: