Class ValidationModelViewModel<T>
- Namespace
- H.Extensions.Validation
- Assembly
- H.Extensions.Validation.dll
public class ValidationModelViewModel<T> : ModelBindable<T>, INotifyPropertyChanged, IModelBindable<T>, IModelBindable, 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)