Microsoft MVP성태의 닷넷 이야기
.NET : 46. Validation Application Block (Enterprise Library 3.0) [링크 복사], [링크+제목 복사],
조회: 9298
글쓴 사람
정성태 (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)
1129정성태2/14/201114675.NET : 113. Running .NET applications in-process using AppDomains
1128정성태2/13/201115291개발 환경 구성: 143. Visual Studio 소스 서버 보안 경고창 없애기
1127정성태2/5/201114569개발 환경 구성: 142. Internet Explorer 6, 7, 8, 9 테스트 - 다중 XP Mode
1126정성태1/28/201120217개발 환경 구성: 141. 키보드 매핑을 바꾸는 레지스트리 설정파일 다운로드1
1125정성태12/24/201013529VS.NET IDE : 59. Visual Studio 2010 - 웹 프로젝트의 Web.debug.config / Web.Release.config 기능을 일반 프로젝트에 적용하는 방법
1124정성태11/16/201022236개발 환경 구성: 140. 대용량 파일 고속 전송: Rapidant
1123정성태11/11/201012190Web : 8. IE 9 플랫폼 프리뷰 6 + IE 9 베타
1122정성태11/9/201012730개발 환경 구성: 139. RemoteFX - USB Rediection
1121정성태11/6/201011661.NET : 112. The F# PowerPack, with F# Compiler Source Drops
1120정성태10/20/201013242Web : 7. Internet Explorer - Browser Mode 와 Document Mode
1119정성태10/9/201012389IIS : 32. Steps for setting up a custom identity of an IIS 6 application pool
1118정성태9/17/201011106Web : 6. Internet Explorer 9 Beta Guide for Developers
1117정성태8/25/201011577.NET : 111. Azure CDN Guide Available
1116정성태8/24/201011327Web : 5. IE 9 - UI 보더 변경에 따른 2-pixel 변화
1115정성태6/18/201013128개발 환경 구성: 138. 프로세스 덤프를 하는 다양한 방법
1114정성태6/1/201011516.NET : 110. C#5 and Meta-Programming [1]
1113정성태4/27/201012358VS.NET IDE : 58. Visual Studio 2010에 기본 내장된 WPF Tree Visualizer
1112정성태4/15/201012102개발 환경 구성: 137. How to enable remote connections in SQL Server 2008?
1111정성태4/2/201010496VS.NET IDE : 57. Simulating Peak Load with VS Load Tests
1110정성태3/30/201011426Windows 7: 4. Windows 7 / R2부터 제공되는 NT 서비스 전용 계정
1109정성태3/17/201012193개발 환경 구성: 136. SCVMM에서 VM을 Template로 만들어서 Library에 넣은 후 새로운 VM 배포하기
1107정성태3/1/201011752.NET : 109. .NET 4.0에서 obsolete로 처리되는 타입
1106정성태2/24/201012365IIS : 31. Microsoft Application Request Routing (ARR)과 TFS App Tier
1105정성태2/9/201011505Debug : 46. 프로세스 종료 시 덤프 남기는 방법
1104정성태1/26/201011651Debug : 45. Debugging References with Graph Visualizations
1103정성태11/18/200910759개발 환경 구성: 135. How to Configure WPL v1.0 SRE
1  2  [3]  4  5  6  7  8  9  10  11  12  13  14  15  ...