2018年11月2日
摘要: .NET Core MVC3 数据模型验证的使用 这里我先粘贴一个已经加了数据验证的实体类PeopleModel,然后一一介绍。 我们需要在实体类中引入命名空间:using System.ComponentModel.DataAnnotations 验证Name字段不能为空:[Required(Er 阅读全文
posted @ 2018-11-02 09:51 陈随风 阅读(5864) 评论(1) 推荐(1)