update

28810
2019-09-11 21:03:14 +08:00
parent 09b980acea
commit ec7a364aca

@@ -69,7 +69,9 @@ class Topic {
}
```
说明:由于内部按名称反射查找特性的,所以 MaxLengthAttribute 可以在任意地方定义。该特性通常定义在 System.ComponentModel.DataAnnotations.MaxLengthAttribute但如果找不到该类可自行在项目中定义名称为 MaxLengthAttribute 的特性类,以及它的属性 Length如下
说明:由于内部按名称反射查找特性的,所以 MaxLengthAttribute 可以在任意地方定义。
该特性通常定义在 System.ComponentModel.DataAnnotations.MaxLengthAttribute。
如果找不到该类,可自行在项目中定义名称为 MaxLengthAttribute 的特性类,如下:
public class MaxLengthAttribute : Attribute
{