com.gudang2go.Sequence 4.0.1
Sequence Tracker (Get Next Sequence)
Requiremet:
- Download package:
com.gudang2go.Sequence.Domain, com.gudang2go.Sequence.Infrastructure, com.gudang2go.Sequence.Shared
Usage:
Implement ITrackerUpdaterContext to UpdaterDbContext
using com.gudang2go.Sequence.Shared.Enums; public class UpdaterDbContext : DbContext, IRMQDBContext, ITrackerUpdaterContext { public UpdaterDbContext(DbContextOptions<UpdaterDbContext> options, IConfiguration configuration) : base(options) { } public DbSet<Tracker> SequenceTrackers { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.ApplyConfiguration(new TrackerConfiguration("YOUR_MODULE_SCHEMA_NAME", [SourceTypeEnum.SalesOrder, SourceTypeEnum.DeliveryOrder] // => create the sequence needed for the module )); } }Implement ITrackerViewerContext to ViewerDbContext
using S = com.gudang2go.Sequence.Domain.AggregateModels.SequenceAggregate; using com.gudang2go.Sequence.Infrastructure.EntityConfigurations; public class ViewerDbContext : DbContext, IRMQDBContext, ITrackerViewerContext { public ViewerDbContext(DbContextOptions<ViewerDbContext> options, IConfiguration configuration) : base(options) { } public DbSet<S.Sequence> Sequences { get; set; } protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.ApplyConfiguration(new SequenceEntityTypeConfiguration()); } }Inject service to Program.cs
builder.Services.AddTrackerService<UpdaterDbContext, ViewerDbContext>();Before using the service, migrate the table first then use the service
using com.gudang2go.Sequence.Shared.Enums; private readonly ITrackerService<UpdaterDbContext, ViewerDbContext> _trackerService; public Constructor(ITrackerService<UpdaterDbContext, ViewerDbContext> trackerService) { _trackerService = trackerService; } public async Task YourFunction() { // Output will be a string var sequence = await _trackerService.GetNextSequence(SourceTypeEnum.SalesOrder); // => Adjust the Enum }
No packages depend on com.gudang2go.Sequence.
.NET 10.0
- com.gudang2go.Sequence.Domain (>= 4.0.0)
- com.gudang2go.Sequence.Infrastructure (>= 4.0.0)
- com.gudang2go.Sequence.Shared (>= 4.0.1)
- com.gudang2go.MultiTenant.DB (>= 3.2.0)
- com.gudang2go.MultiTenant.Provider (>= 3.1.1)
| Version | Downloads | Last updated |
|---|---|---|
| 4.0.1 | 23 | 11/02/2026 |
| 4.0.0 | 571 | 03/15/2026 |
| 3.2.0 | 23 | 03/06/2026 |
| 3.1.0 | 53 | 02/24/2026 |
| 3.0.7 | 185 | 01/27/2026 |
| 3.0.6 | 51 | 01/19/2026 |
| 3.0.5 | 141 | 12/31/2025 |
| 3.0.4 | 1 | 12/31/2025 |
| 3.0.3 | 275 | 11/17/2025 |
| 3.0.2 | 32 | 11/14/2025 |
| 3.0.1 | 83 | 11/11/2025 |
| 3.0.0 | 4 | 11/11/2025 |
| 2.2.6 | 13 | 11/08/2025 |
| 2.2.5 | 0 | 11/07/2025 |
| 2.2.4 | 4 | 11/07/2025 |
| 2.2.3 | 0 | 11/07/2025 |
| 2.2.2 | 0 | 11/07/2025 |
| 2.2.1 | 4 | 11/07/2025 |
| 2.2.0 | 1 | 11/07/2025 |
| 2.1.1 | 131 | 10/24/2025 |
| 2.1.0 | 13 | 10/24/2025 |
| 2.0.3 | 124 | 10/03/2025 |
| 2.0.2 | 2 | 10/02/2025 |
| 2.0.1 | 0 | 10/01/2025 |
| 2.0.0 | 105 | 09/22/2025 |
| 0.0.11 | 71 | 09/08/2025 |
| 0.0.10 | 4 | 09/06/2025 |
| 0.0.9 | 215 | 08/15/2025 |
| 0.0.8 | 5 | 08/15/2025 |
| 0.0.7 | 2 | 08/14/2025 |
| 0.0.6 | 0 | 08/13/2025 |
| 0.0.5 | 20 | 08/13/2025 |
| 0.0.4 | 5 | 08/13/2025 |
| 0.0.3 | 2 | 08/13/2025 |
| 0.0.2 | 0 | 08/12/2025 |
| 0.0.1 | 0 | 08/12/2025 |