Microsoft MVP성태의 닷넷 이야기
.NET : 46. Validation Application Block (Enterprise Library 3.0) [링크 복사], [링크+제목 복사],
조회: 9312
글쓴 사람
정성태 (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]


비밀번호

댓글 작성자
 




... 16  17  18  19  20  [21]  22  23  24  25  26  27  28  29  30  ...
NoWriterDateCnt.TitleFile(s)
675정성태3/7/20079480Debug : 9. 실행 시 IL 코드 교체 프로파일러
674정성태3/7/200710001.NET 3.5 : 6. Orcas 3월 CTP 에 포함된 LINQ to Entities 예제 문제 수정
673정성태3/7/200710179VS.NET IDE : 22. XML 편집시 XSD 를 이용한 인텔리센스 제공
672정성태3/7/200710300개발 환경 구성: 84. Vista에서 ClickOnce 배포 환경 설정
671정성태3/6/200710317개발 환경 구성: 83. 지문 인식기 관련 프로그래밍
670정성태3/6/20079748개발 환경 구성: 82. Virtual PC 2007의 Vista에 대한 사운드 지원
669정성태3/6/20079799VS.NET IDE : 21. Orcas - 프로젝트 속성창 버그
668정성태3/6/20079715개발 환경 구성: 81. 소프트웨어적으로 Raid 0, 1, 5 구성하는 방법
667정성태3/6/20079621TFS : 86. Orcas에서 변화된 TFS Workspace 관리 방식 3가지
666정성태3/2/20079699VS.NET IDE : 20. Orcas - 스크립트 디버깅 기능 향상
665정성태3/1/200710170.NET 3.5 : 5. 새롭게 추가된 네트워킹 기능
664정성태3/1/20079894VS.NET IDE : 19. Visual Studio Code Metrics
663정성태3/1/200710042VS.NET IDE : 18. Orcas에 포함된 새로운 웹 폼 디자이너
662정성태3/1/200710858Office : 1. Visio 로 UI 프로토타입 설계
661정성태3/1/20079919TFS : 85. Visual Studio Team System Guidance
660정성태2/27/20079482.NET : 54. EntLib 3.0 의 새로운 AppBlock - Policy Injection
659정성태2/25/200710547개발 환경 구성: 80. 새로운 버전의 FxCop 을 빌드 과정에 포함
658정성태2/25/200710409TFS : 84. FxCop 사용자 정의 룰을 위한 단위 테스트 설정
657정성태2/23/200710473Vista : 39. 2초 내에 Resume이 되도록 환경 설정
656정성태2/21/200710610Vista : 38. 개발자를 위한 UAC 관련 문서
655정성태2/21/200710311개발 환경 구성: 79. MSSQL Reporting Service 구성
654정성태2/21/20079711.NET 3.0 : 14. System.IdentityModel.Selectors.CardSpaceSelector 클래스 소개
653정성태2/21/20079786TFS : 83. 팀 빌드 과정에 ClickOnce 빌드 포함
652정성태2/19/200710549개발 환경 구성: 78. FastCGI를 이용하여 Ruby on Rails 를 IIS 에서 구동
651정성태2/18/200710214Vista : 37. x64 - 바이오스 업데이트
650정성태2/17/200710041TFS : 82. ASP.NET - Team Build 후에 파일 복사
... 16  17  18  19  20  [21]  22  23  24  25  26  27  28  29  30  ...