Refactor Category Service ...

- Add all HardCoded Strings in Constants ...
- Apply Resolve Constant Replacement Side Affects ...
- add Support for Service Main Provider ...
This commit is contained in:
2026-07-28 21:31:42 +03:30
parent 4e67edeb85
commit e37bad59ac
21 changed files with 1013 additions and 38 deletions
@@ -1,5 +1,6 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using xCategoryService.Constants;
using xCategoryService.Models.Entities;
using xDataService.Providers;
@@ -9,7 +10,7 @@ namespace xCategoryService.Configurations.Entities
{
public override void Configure(EntityTypeBuilder<XCategory> builder)
{
builder.ToTable("Categories");
builder.ToTable(XCategoryServiceConstants.XCategoryTable);
}
}
}
@@ -1,5 +1,6 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using xCategoryService.Constants;
using xCategoryService.Models.Entities;
using xDataService.Providers;
@@ -9,7 +10,7 @@ namespace xCategoryService.Configurations.Entities
{
public override void Configure(EntityTypeBuilder<XSubCategory> builder)
{
builder.ToTable("SubCategories");
builder.ToTable(XCategoryServiceConstants.XSubCategoryTable);
}
}
}