BatchApplyResult
Result of applying a single batch.
public sealed record BatchApplyResult : IEquatable<BatchApplyResult>
Example
// After applying a batch
var result = new BatchApplyResult(
AppliedCount: 95,
DeferredCount: 5,
ToVersion: 150
);
// Check for deferred changes (FK violations that need retry)
if (result.DeferredCount > 0)
{
Console.WriteLine($"{result.DeferredCount} changes deferred, will retry");
}
Console.WriteLine($"Applied {result.AppliedCount} changes up to version {result.ToVersion}");
Constructors
BatchApplyResult
public BatchApplyResult(int AppliedCount, int DeferredCount, long ToVersion)
Result of applying a single batch.
| Parameter | Type | Description |
|---|---|---|
AppliedCount |
Int32 |
Number of changes successfully applied. |
DeferredCount |
Int32 |
Number of changes deferred due to FK violations. |
ToVersion |
Int64 |
The max version applied in this batch. |
Properties
AppliedCount
public int AppliedCount { get; init; }
Number of changes successfully applied.
DeferredCount
public int DeferredCount { get; init; }
Number of changes deferred due to FK violations.
ToVersion
public long ToVersion { get; init; }
The max version applied in this batch.