Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-108

Recursive transactions

      Manually checking everywhere if realm is already in transaction leading to dirty code. There would be nice to use them recursively like the lock construction:

      using(var transaction=realm.BeginWrite())
      {
         realm.Write(()=>{/*some writes*/});
      }
      

      or

      using(var transaction=realm.BeginWrite())
      {
         //some writes
         SomeSharedCode(realm);
      }
      public void SomeSharedCode ()
      {
         var realm=Realm.GetInstance();
         realm.Write(()=>{/*some writes*/});
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: