c#model限制字段的输入类型

it2025-03-26  24

第一步:

引入引用using System.ComponentModel.DataAnnotations;

第二部:

在字段前添加限制类型

参考地址:http://blog.csdn.net/chengly0129/article/details/7823157

转载于:https://www.cnblogs.com/luoliangfei/p/7565378.html

最新回复(0)