C# 클래스 FluentValidation.AspNetCore.ValidationResultExtension

파일 보기 프로젝트 열기: JeremySkinner/FluentValidation

공개 메소드들

메소드 설명
AddToModelState ( this result, ModelStateDictionary modelState, string prefix ) : void

Stores the errors in a ValidationResult object to the specified modelstate dictionary.

메소드 상세

AddToModelState() 공개 정적인 메소드

Stores the errors in a ValidationResult object to the specified modelstate dictionary.
public static AddToModelState ( this result, ModelStateDictionary modelState, string prefix ) : void
result this The validation result to store
modelState ModelStateDictionary The ModelStateDictionary to store the errors in.
prefix string An optional prefix. If ommitted, the property names will be the keys. If specified, the prefix will be concatenatd to the property name with a period. Eg "user.Name"
리턴 void