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

TransactionScope support for MongoDB

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Transactions
    • None

    Description

      Implement a Resource Manager that should be enlisted as a participant in a transaction.
      The objective would be to make transactions in MongoDB compatible with .NET standard way of handling transactions using TransactionScope.

      This should make handling transactions implicit without the need for using StartTransaction and AbortTransaction method.

       
      using(Transaction scope = new TransactionScope())
      {
          database.GetCollection<Car>("Car").InsertOne(new Car { Model = "S" });
          scope.Complete();
      }
      

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            sainishubham98@gmail.com shubham saini
            Votes:
            9 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: