Microsoft MVP성태의 닷넷 이야기
.NET : 46. Validation Application Block (Enterprise Library 3.0) [링크 복사], [링크+제목 복사],
조회: 9302
글쓴 사람
정성태 (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)
975정성태10/9/200810705.NET : 88. ClickOnce에서 .application 파일을 다운로드 하려고 할 때.
974정성태10/8/200810722TFS : 168. MSBuild Extension Pack
973정성태10/5/200812395.NET 3.5 : 42. WPF - Web Browser 및 Splash Control 추가
972정성태10/2/200810679TFS : 167. TFS Power Tools 다음 버전 소개
971정성태9/22/200810996TFS : 166. Index cards and Team System
970정성태9/16/200810977Vista : 53. 설치 디스크를 USB 로 만들기
968정성태9/11/200810591XML Conformance Level 에 Fragment 값이 쓰이는 경우.
967정성태9/8/200810717.NET : 87. CertEnroll 개체를 이용한 인증서 요청/반환/설치
966정성태9/2/200810774.NET : 86. .NET Framework 3.5 SP1 소스 코드 공개
965정성태9/2/200811721Vista : 52. SPI(Stateful Packet Inspection) 옵션 제거
964정성태8/18/200812724.NET 3.0 : 24. WPF DataGrid
969정성태9/16/200811003    답변글 .NET 3.0 : 24.1 Editing Tabular Data in WPF - Building a WPF Grid
963정성태7/25/200811787.NET : 85. VPL(Visual Programming Language)를 아세요?
962정성태7/24/200810848TFS : 165. WorkItem 에 대해 Full Text 검색
961정성태7/20/200810794.NET : 84. WCSF Application Architecture
960정성태7/14/200810622.NET : 83. Non Paged CLR Host
959정성태7/7/200811167.NET : 82. Composite Application Guidance for WPF
958정성태7/7/200812317.NET : 81. C# - 왜 모든 함수호출에서 callvirt 를 사용할까?
957정성태6/30/200811293GUID
956정성태6/27/200810805TFS : 164. 팀 프로젝트 간 WorkItem 이동 방법
955정성태6/26/200811328TFS : 163. 삭제된 항목을 소스 컨트롤 탐색기에서 보이도록 하는 방법
954정성태6/20/200810957Debug : 37. IDE 디자인 모드에서의 디버깅 기법
953정성태6/10/200811812.NET : 80. Unity Application Block 소개(?) [1]
952정성태4/28/200811072.NET : 79. IconHandler 2.0
951정성태4/28/200811488SDK : 14. STA / MTA 기원
950정성태4/24/200810586.NET : 78. Ajax View
1  2  3  4  5  6  7  8  [9]  10  11  12  13  14  15  ...