Exemple #1
0
                void WriteIncludes()
                {
                    var tracker = new EntityChangeTracker();

                    foreach (var @event in events)
                    {
                        tracker.Record(@event.IncludedOperations);
                    }

                    operations.AddRange(tracker.Compute());
                }
Exemple #2
0
                void WriteIncludes()
                {
                    if (!options.TrackChanges)
                    {
                        operations.AddRange(events.SelectMany(x => x.IncludedOperations));
                        return;
                    }

                    var tracker = new EntityChangeTracker();

                    foreach (var @event in events)
                    {
                        tracker.Record(@event.IncludedOperations);
                    }

                    operations.AddRange(tracker.Compute());
                }