Microsoft MVP성태의 닷넷 이야기
.NET : 46. Validation Application Block (Enterprise Library 3.0) [링크 복사], [링크+제목 복사],
조회: 9324
글쓴 사람
정성태 (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)
625정성태2/2/20079583TFS : 73. Team System 관련 유틸리티 목록
624정성태2/1/200710733개발 환경 구성: 72. Fiddler - IE 7 + Cassini 에서 동작되지 않는 문제 [2]
623정성태2/1/20079927TFS : 72. TFS 언어 변경
622정성태1/30/20079532.NET : 53. ASP.NET 2.0 AJAX Extension 1.0 - 소스 코드
621정성태1/30/200710105TFS : 71. Code Analysis 정책을 유형에 따라 적용하는 방법
620정성태1/29/200710784VS.NET IDE : 17. C#, VB.NET, VC++ 단축키 모음
619정성태1/28/200710325IIS : 12. 비스타 버전별 IIS 기능 차이
618정성태1/28/20079566Debug : 8. RuntimeWrappedException 사용 이해
617정성태1/27/200710077TFS : 70. 웹 서비스 구현 없이 TFS 통지 받기파일 다운로드1
616정성태1/27/200710781IIS : 11. Visual SourceSafe 웹 서비스가 비스타 IIS 7에서 지원되지 않는 문제
615정성태1/25/20079922TFS : 69. Workgroup 으로 설치된 TFS 를 Domain 으로 승격하는 방법
614정성태1/25/200710531개발 환경 구성: 71. 현재 프로세스에 로딩된 모듈 중에서 NGen 되지 않은 모듈 검색
613정성태1/25/200710451IIS : 10. IE에 최적화된 성능을 내는 JScript 코드 작성
612정성태1/25/20079560Debug : 7. WinLogon.exe 프로세스 디버깅하는 방법
611정성태1/25/200710016.NET : 52. Team System 단위 테스트에 관한 PDF 문서파일 다운로드1
610정성태1/25/20079990.NET : 51. FxCop 관련 PDF 문서파일 다운로드1
609정성태1/24/20079685.NET : 50. 공급자 독립적인 코드 작성 [2]
608정성태1/23/20079843TFS : 68. TFS Proxy 서버 설치하는 방법
607정성태1/23/20079474이미 제공되는 예외 클래스들에 대한 적절한 사용법 설명
606정성태1/23/200712428TFS : 67. TFS 명령행 인자
605정성태1/23/20078871TFS : 66. 차기 TFS 파워툴 - TFSServerManager / TFSServerMonitor
603정성태1/22/200710004Vista : 30. Property Handler가 필요한 때.
602정성태1/22/200710258IIS : 9. 디렉터리 열람을 위한 HttpModule파일 다운로드1
601정성태1/22/20079335개발 환경 구성: 70. Web Client Software Factory 설치 가이드(비스타)
600정성태1/21/20079828개발 환경 구성: 69. Virtual PC/Server에서의 가상 네트워크 어댑터 추가 방법
599정성태1/21/200710103Vista : 29. UAC 와 보안 데스크탑
... 16  17  18  19  20  21  22  [23]  24  25  26  27  28  29  30  ...