Метод | Описание | |
---|---|---|
TransferValidationMessagesTo ( ModelStateDictionary modelStateDictionary, IEnumerable |
||
TransferValidationMessagesTo ( string keyBase, ModelStateDictionary modelStateDictionary, IEnumerable |
This acts as a more "manual" alternative to moving validation errors to the ModelStateDictionary if you care to bypass the use of ValidatableModelBinder. This typically wouldn't be used in conjunction with ValidatableModelBinder but as an alternative to it.
|
public static TransferValidationMessagesTo ( ModelStateDictionary modelStateDictionary, IEnumerable |
||
modelStateDictionary | ModelStateDictionary | |
validationResults | IEnumerable |
|
Результат | ModelStateDictionary |
public static TransferValidationMessagesTo ( string keyBase, ModelStateDictionary modelStateDictionary, IEnumerable |
||
keyBase | string | If supplied, will be used as the model state prefix /// instead of the class name |
modelStateDictionary | ModelStateDictionary | |
validationResults | IEnumerable |
|
Результат | ModelStateDictionary |