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

No return type for InsertOne and InsertMany

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API

      Hi 

      Please can you review the following for a future improvement:

      InsertOne(), InsertOneAsync(), InsertMany(), InsertManyAsync() methods do not return anything.  They should return something I would expect an object based on the other methods below:

      DeleteOne and DeleteOneAsync() returns a DeleteResult object 

      UpdateOne and UpdateOneAsync() returns an UpdateResult object

       

      I have worked around this using the BulkInsert/BulkInsertResult but the above insert methods should return an InsertResult object.

      The Java driver does return an InsertResult object.

       

      Many thanks

            Assignee:
            Unassigned Unassigned
            Reporter:
            nick.parker@sainsburys.co.uk Nick Parker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: