Class ValidationModelViewModel<T>
- Namespace
- HeBianGu.Service.Validation
- Assembly
- HeBianGu.Service.Validation.dll
拥有根据Model验证特性判断用户输入数据是否合法的绑定模型基类
public class ValidationModelViewModel<T> : ModelViewModel<T>, INotifyPropertyChanged, IModelViewModel<T>, IModelViewModel, ISearchable
Type Parameters
T
- Inheritance
-
ValidationModelViewModel<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
ValidationModelViewModel(T)
public ValidationModelViewModel(T t)
Parameters
t
T
Methods
CreateModelProperty<R>(string)
获取指定名称实体字段数据
protected ValidationProperty<R> CreateModelProperty<R>(string propertyName = "")
Parameters
propertyName
string
Returns
Type Parameters
R
ModelState(out List<string>)
检查数据状态
public bool ModelState(out List<string> errors)