摘要: 在Asp.Net Core 2.1之后的版本中,则不需要Model.IsValid验证了,程序框架已经包含了该功能。 1.建立模型 using System.ComponentModel.DataAnnomations; public class Customer{ [Required(ErrorM 阅读全文
posted @ 2021-04-12 20:22 丹心石 阅读(61) 评论(0) 推荐(0)