Try to use attributes for enum to string conversion

This commit is contained in:
2025-11-05 11:34:38 +09:00
parent 3d3ee858c4
commit 0169e5724d
2 changed files with 6 additions and 17 deletions

View File

@ -1,4 +1,5 @@
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Hcs.WebApp.Data.Hcs
{
@ -6,7 +7,10 @@ namespace Hcs.WebApp.Data.Hcs
{
public enum CampaignType
{
[Display(Description = "Экспорт общих справочников")]
ExportCommonRegistryElements_15_7_0_1,
[Display(Description = "Экспорт частных справочников")]
ExportPrivateRegistryElements_15_7_0_1
}