feat: register inventory-related repositories and services in ConfigureServices
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 1m39s
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 1m39s
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
using CMSMicroservice.Application.Common.Interfaces;
|
||||
using CMSMicroservice.Application.Common.Interfaces.Repositories;
|
||||
using CMSMicroservice.Application.DayaLoanCQ.Services;
|
||||
using CMSMicroservice.Infrastructure.Persistence;
|
||||
using CMSMicroservice.Infrastructure.Persistence.Interceptors;
|
||||
using CMSMicroservice.Infrastructure.Persistence.Repositories;
|
||||
using CMSMicroservice.Infrastructure.BackgroundJobs;
|
||||
using CMSMicroservice.Infrastructure.Services.Monitoring;
|
||||
using CMSMicroservice.Infrastructure.Configuration;
|
||||
@@ -118,6 +120,13 @@ public static class ConfigureServices
|
||||
options.UseSqlServer(configuration.GetConnectionString("DefaultConnection"),
|
||||
builder => builder.MigrationsAssembly(typeof(ApplicationDbContext).Assembly.FullName)));
|
||||
}
|
||||
|
||||
// Repository Pattern Registration
|
||||
services.AddScoped<IInventoryItemRepository, InventoryItemRepository>();
|
||||
services.AddScoped<IStockMovementRepository, StockMovementRepository>();
|
||||
services.AddScoped<IWarehouseRepository, WarehouseRepository>();
|
||||
services.AddScoped<IInventoryService, InventoryService>();
|
||||
|
||||
#region AddAuthentication
|
||||
|
||||
var message = "";
|
||||
|
||||
Reference in New Issue
Block a user