你可以使用[Numeric]数据注释来实现这个功能。如果你处理的是货币,还可以使用[DataType(DataType.Currency)]。编辑:Numeric实际上是Data Annotations扩展的一部分。