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:
@@ -2,6 +2,35 @@ namespace xCategoryService.Constants
|
||||
{
|
||||
public struct XCategoryServiceConstants
|
||||
{
|
||||
//
|
||||
// Service Extensions Log Tag ...
|
||||
public const string XCategoryServiceDILogTag = "XCategoryService";
|
||||
|
||||
//
|
||||
// Table Mapping Identifiers ...
|
||||
public const string XCategoryTable = "Categories";
|
||||
public const string XSubCategoryTable = "SubCategories";
|
||||
|
||||
//
|
||||
// GraphQL Collection Mappings ...
|
||||
public const string XCategorySingleName = "category";
|
||||
public const string XCategoryCollectionName = "categories";
|
||||
public const string XSubCategorySingleName = "subCategory";
|
||||
public const string XSubCategoryCollectionName = "subCategories";
|
||||
|
||||
//
|
||||
// Hubs ...
|
||||
public const string XCategoryDtoHub = "categoryDto";
|
||||
public const string XCategoryEntityHub = "categoryEntity";
|
||||
public const string XSubCategoryDtoHub = "subCategoryDto";
|
||||
public const string XSubCategoryEntityHub = "subCategoryEntity";
|
||||
|
||||
//
|
||||
// Custome Constants ...
|
||||
public const string SubCategoryReference = "SubCat";
|
||||
public const string CategoryTitleResourceIdentifier = "CatT";
|
||||
public const string CategoryDescriptionResourceIdentifier = "CatD";
|
||||
public const string SubCategoryTitleResourceIdentifier = "SubCatT";
|
||||
public const string SubCategoryDescriptionResourceIdentifier = "SubCatD";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user