Microsoft MVP성태의 닷넷 이야기
.NET : 46. Validation Application Block (Enterprise Library 3.0) [링크 복사], [링크+제목 복사],
조회: 9315
글쓴 사람
정성태 (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)
500정성태11/2/20069593TFS : 50. TfsAlert 0.3.0.0 릴리스
499정성태11/2/200610179개발 환경 구성: 50. VS.NET, .NET Framework QFE 패치
498정성태11/4/20069713TFS : 49. Team Foundation Administrator's Guide 문서 업데이트
497정성태11/1/20069653개발 환경 구성: 49. IE 7 의 "Search Provider" 기능 소개
496정성태11/4/20069183.NET : 26. Download the New Composite UI Application Block Reference Application from IdeaBlade
495정성태11/1/20069269개발 환경 구성: 48. XamlPadX (extended)
494정성태11/1/200610124TFS : 48. SandCastle Team Build targets 파일파일 다운로드1
493정성태10/31/20069414VS.NET IDE : 12. [Orcas] TreeDiff 지원
492정성태10/31/20069937개발 환경 구성: 47. SandCastle 과 NAnt 의 결합
491정성태10/28/200610080SDK : 4. PE/COFF 스펙
490정성태11/4/200613852.NET : 25. C# "const" 키워드와 "static readonly"의 차이
489정성태10/28/200610377Visual C++ : 4. VC++ 8.0 override 키워드 이해 [1]
488정성태10/26/20069799TFS : 47. TFS Application Tier 로부터 Sharepoint 분리해서 설치하는 방법
487정성태10/26/200610059TFS : 46. Project Server 2003 - Team Foundation connector released
486정성태10/25/20069248개발 환경 구성: 46. VS.NET Addin - 디렉터리 단위로 링크 방식으로 파일 추가
485정성태10/23/20069881.NET 3.0 : 5. WinFX (.NET 3.0) Series Presentation Slides
484정성태10/20/20069520개발 환경 구성: 45. Microsoft Best Practices Analyzer 1.0
483정성태10/20/20069308.NET 3.0 : 4. HostNameComparisonMode 의 이해
482정성태10/29/20069684TFS : 45. TeamPlain 1.1 now available
481정성태10/19/20069733TFS : 44. Project Server 2003 and Visual Studio Team System 2005 connector available!
480정성태10/19/20069549개발 환경 구성: 44. IE 7 에 포함된 RSS Platform MiniSDK파일 다운로드1
479정성태10/18/200610140x64 : 2. dynamic_cast is slow in x64
478정성태10/18/20069851개발 환경 구성: 43. IE 7 에서 달라지는 Accept-Language 헤더
477정성태10/18/20069736.NET : 24. ADO.Net 성능 향상 팁
476정성태10/18/200610892TFS : 43. WorkItem 항목 삭제
475정성태11/8/20069997개발 환경 구성: 42. VHD 파일을 가상 하드 디스크로 설정하는 방법파일 다운로드1
... 16  17  18  19  20  21  22  23  24  25  26  27  [28]  29  30  ...