Microsoft MVP성태의 닷넷 이야기
.NET : 46. Validation Application Block (Enterprise Library 3.0) [링크 복사], [링크+제목 복사],
조회: 9319
글쓴 사람
정성태 (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)
525정성태11/14/200610407Vista : 14. .NET 개발자들을 위한 Vista 기능 소개
524정성태11/13/20069947TFS : 55. Annotate 소개
523정성태11/13/200611516.NET 3.0 : 7. WPF - EXE 유형의 프로젝트를 XBAP 유형으로 변경
522정성태11/12/200611073.NET : 33. SynchronizationContext 에 대해서.
521정성태11/12/20069678SDK : 7. Sessions, Window Stations, Desktops
520정성태11/12/200611217Vista : 13. LLTD(Link Layer Topology Discovery)가 뭘까요?
519정성태11/12/20069691Vista : 12. Network Location Type - Public, Private, Domain - 에 대한 설명.
518정성태11/12/20069506개발 환경 구성: 53. Sandcastle - 일반적인 HTML 파일 이름 생성
517정성태11/11/200610299.NET : 32. Enterprise Library - 예외 처리 가이드 (PPT 및 소스 코드) [2]파일 다운로드1
516정성태11/10/20069194개발 환경 구성: 52. Vista - 원격 터미널 클라이언트에서 다중 모니터 지원
515정성태11/8/200610160SDK : 6. 패치 툴 소개 ( mspatcha, mspatchc )파일 다운로드1
514정성태11/8/20069931.NET : 31. MSN Messenger 연동 라이브러리
513정성태11/8/200611353Visual C++ : 5. Browser Helper Object 제작 방법
512정성태11/8/200611518SDK : 5. Tiny PE - 가장 작은 PE 파일 제작파일 다운로드1
511정성태11/8/200610588개발 환경 구성: 51. Extended Validation (EV) SSL 인증서 소식 [1]
510정성태11/7/200610337VS.NET IDE : 13. Guidance Automation Toolkit and Domain-Specific Language Tools for Visual Studio 2005: Integration Scenarios
509정성태11/7/20069871.NET 3.0 : 6. ADO.NET Samples for Visual Studio Code Name “Orcas” - October CTP
508정성태11/6/20069660TFS : 54. 새로운 TFS 리포트 생성
507정성태11/5/20069446.NET : 30. LINQ 관련 자료
506정성태11/5/20069741.NET : 29. .NET Fusion API
505정성태11/4/20069557.NET : 28. The .NET Developer's Guide to Identity
504정성태11/4/20069762.NET : 27. ASP.NET 2.0 Resource-Provider 모델 확장
503정성태11/4/20069742TFS : 53. VSTS 관련 자료 링크 모음
502정성태11/4/20069515TFS : 52. Data-Tier Server 미러링
501정성태11/3/20069726TFS : 51. TFS 증분 빌드 환경 설정
500정성태11/2/20069593TFS : 50. TfsAlert 0.3.0.0 릴리스
... 16  17  18  19  20  21  22  23  24  25  26  [27]  28  29  30  ...