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

Can't Create Database

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.1
    • Component/s: Operations
    • Labels:
      None
    • Environment:
      MongoDB 3.1.5

      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.

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

              Created:
              Updated:
              Resolved: