MiniExcel icon indicating copy to clipboard operation
MiniExcel copied to clipboard

枚举描述,如果数据没有在枚举里面则会报错

Open yccool opened this issue 1 year ago • 0 comments

public class Dto { public string Name { get; set; } public Type UserType { get; set; } }

public enum Type { [Description("General User")] V1, [Description("General Administrator")] V2, [Description("Super Administrator")] V3 }

当源数据,没有在枚举Type的Description里面的值时,会报错,导入导出都报错

yccool avatar Jun 05 '24 11:06 yccool