你的位置: 码友网首页 / 资讯源列表 / Displaying enum as select list in ASP.NET Core

关于[Displaying enum as select list in ASP.NET Core]的摘要:

Some properties of model classes come as enums and we want to show enum values in select list when edit form is opened. Sometimes we want enum element names but sometimes we want to use custom names or even translations. his blog post demonstrates how to get enum element names to select list on ASP.NET Core.

原文地址: https://gunnarpeipman.com/aspnet-core-enum-to-select-list/

收录时间: 2020-04-01 浏览量: 2251 分类: ASP.NET Core

| 0 收藏 | 0