From 84bb439f2dfabf54a02b7db3c06ce7f1703cca8f Mon Sep 17 00:00:00 2001 From: "Jeremy D. Miller" Date: Fri, 19 Jul 2024 07:25:23 -0500 Subject: [PATCH] Event operations are performed before document operations. Important for later event store optimizations --- src/Marten/Internal/UnitOfWork.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Marten/Internal/UnitOfWork.cs b/src/Marten/Internal/UnitOfWork.cs index f64b4ecdb9..70d53e047c 100644 --- a/src/Marten/Internal/UnitOfWork.cs +++ b/src/Marten/Internal/UnitOfWork.cs @@ -52,7 +52,7 @@ public void Add(IStorageOperation operation) } } - public IReadOnlyList AllOperations => _operations.Concat(_eventOperations).ToList(); + public IReadOnlyList AllOperations => _eventOperations.Concat(_operations).ToList(); public void Sort(StoreOptions options) {