Microsoft MVP성태의 닷넷 이야기
.NET : 46. Validation Application Block (Enterprise Library 3.0) [링크 복사], [링크+제목 복사],
조회: 9300
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Validators supplied in the VAB
; https://docs.microsoft.com/en-us/archive/blogs/tomholl/validators-supplied-in-the-vab

아직 포함되지는 않았고요. ^^ 포함할 계획이라고 합니다. 다음과 같은 validator들이 포함된다고 하는군요.


  • Not Null Validator: Validates that a value is not null
  • Range Vailidator (generic, supporting IComparable types): Validates that a value falls within a specified range. The range may be closed or open ended, and may be inclusive or exclusive.
  • Relative DateTime Validator: Validates that a DateTime falls within a specified range, relative to now. The range may be closed or open ended, and may be inclusive or exclusive. For example, you could check if a date is between now and 100 years from now, or from 20 days ago to 4 days from now.
  • String Length Validator: Validates that a string is of a certain length. May contain a minimum, a maximum or both.
  • RegEx Validator: Validates that a string matches a specified regular expression. We'll also include support for "pre-canned" RegEx patterns for common things such as URLs, e-mail addresses, phone numbers etc.
  • Contains Characters Validator: Validates that a string contains all of the characters in a specified string.
  • Type Conversion Validator: Validates that a string can be converted to a specific type (using a specific culture). For example, this could check that "6.32" can be converted to a Double, or "2007-02-09" can be converted to a DateTime.
  • Enum Conversion Validator: Validates that a string can be converted to a value in a specified enum type. For example, this could check that "Blue" could be converted to a value in the Color enum.
  • Domain Validator (generic): Validates that a value is included in a specified set, such as {"John", "Paul", "George", "Ringo"} or {2, 3, 5, 7, 11}. If the set only contains one value, this validator can be used to check for equality.

Next, here are our planned "composition" validators:

  • And Composite Validator: Indicates that all of a set of child validators must pass
  • Or Composite Validator: Indicates that just one of a set of child validators must pass.

Finally, here are our planned "value access" validators, which can be used to specify validation rules on complex objects:

  • Property: Applies a validator to a property of an object
  • Field: Applies a validator to a field of an object
  • Method: Applies a validator to the result of a method of an object (can only be used for methods with no parameters and a non-void result, such as ToString()).
  • Object: Specifies that a nested object needs to be validated by a particular rule set.
  • Collection: Specifies that a nested collection of objects needs to be validated by a particular rule set.

Did we miss anything important?








[최초 등록일: ]
[최종 수정일: 7/5/2021]


비밀번호

댓글 작성자
 




1  2  3  4  5  6  7  8  9  10  11  12  13  14  [15]  ...
NoWriterDateCnt.TitleFile(s)
825정성태8/23/200710178개발 환경 구성: 110. AutoExNT 도구
824정성태8/16/200710847개발 환경 구성: 109. Code Project Browser Add-In for Visual Studio 2005
823정성태8/16/200713872IIS : 16. 인증서 검증 - CRL 체크 설정
822정성태8/16/200710800TFS : 124. VSTS - Architecture Edition Power Tools - 8월 CTP
821정성태8/15/20079808TFS : 123. TFS 2008의 팀 빌드 관련 소개
820정성태8/14/200711316.NET 3.5 : 28. 한번 더 생각해 보는 C# 3.0 의 개체 초기화 지정자(Object Initializers)
819정성태8/13/200710781TFS : 122. DB Professional - Power Tools 배포
818정성태8/13/200711201VS.NET IDE : 38. Visual Studio 2008 Shell 맛보기 [1]
817정성태8/10/200710926VS.NET IDE : 37. Customising WCF Proxy Generation in Visual Studio 2008
816정성태8/7/200711040TFS : 121. TFS 가이드 최종 버전
815정성태8/7/200710340TFS : 120. Rosario - 개선된 작업항목 추적 기능 [1]
814정성태8/6/200710557TFS : 119. MSBuild 를 이용한 위성 어셈블리 자동 빌드
813정성태7/31/200710706TFS : 118. TeamPlain 의 진화 : Team System Web Access Power Tool
812정성태7/31/200710254TFS : 117. Offline 모드 지원
811정성태7/31/200710690개발 환경 구성: 108. 문서 - AD 서버를 가상 머신으로 운영.
810정성태7/27/200710130TFS : 116. VS.NET 2008 TFS 설치 가이드 (베타)
809정성태7/27/200710700TFS : 115. 인터넷 연결 및 HTTPS 설정
808정성태7/19/200710693TFS : 114. MSF Process Guidance Generator Tool
807정성태7/19/200713968개발 환경 구성: 107. 터미널 서비스에서 꼭 알아야 할 기능 - shadow [1]
806정성태7/15/200710341TFS : 113. TFS 2008 - SharePoint 분리 및 통합 지원
805정성태7/15/200710415TFS : 112. MSBuild 프로젝트 이외의 프로젝트를 빌드
804정성태7/14/200711962TFS : 111. 팀 빌드에서 셋업 프로젝트 연결 [1]
803정성태7/14/200710404개발 환경 구성: 106. 롱혼 터미널 서비스에서의 콘솔 관리
802정성태7/13/200710682TFS : 110. 팀 빌드 - 테스트 결과를 알아내는 MSBuild Task
801정성태7/12/200710825개발 환경 구성: 105. 환경 설정 정보 암호화
800정성태7/10/200712161.NET 3.5 : 27. IQueryable 구현 방법 [3]
1  2  3  4  5  6  7  8  9  10  11  12  13  14  [15]  ...