📜  在模型中添加以提供下拉消息 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:53.600000             🧑  作者: Mango

代码示例1
[Required(ErrorMessage = "Country is required.")]
public int SelectedCountryId { get; set; }