---
# System prepended metadata

title: Model 列舉 特殊字符
tags: [火箭]

---

# Model 列舉 特殊字符
###### tags: `火箭`

```sql=
[Display(Name = "狀態")]
        public ProjectStatus ProjectStatus { get; set; }
        [NotMapped]
        public string ProjectStatusString
        {
            get
            {
                switch (ProjectStatus)
                {
                    case ProjectStatus.草稿:
                        return "草稿";
                    case ProjectStatus.已通知:
                        return "已通知";
                    case ProjectStatus.已收件:
                        return "已收件";
                    case ProjectStatus.處理中:
                        return "處理中";
                    case ProjectStatus.完成:
                        return "結案（完成）";
                    case ProjectStatus.無法成案:
                        return "結案（無法成案）";
                    default:
                        return null;
                }
            }
        }
```