Microsoft MVP성태의 닷넷 이야기
.NET : 46. Validation Application Block (Enterprise Library 3.0) [링크 복사], [링크+제목 복사],
조회: 9343
글쓴 사람
정성태 (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]


비밀번호

댓글 작성자
 




... 31  32  33  [34]  35  36  37  38  39  40  41  42  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
346정성태6/29/20069253Debug : 1. How to build Mdbg apps파일 다운로드1
344정성태10/20/200611840Vista : 3. Vista에서 제거되는 DHTML Editing Control - 두 번째 소식
345정성태10/20/200610555    답변글 Vista : 3.1 [현상 1] Vista 에서 OWA 접근
351정성태10/20/200613825    답변글 Vista : 3.2 Vista에서 문제되는 웹 사이트
352정성태10/20/200611060    답변글 Vista : 3.3 Vista 관련 조각 코드파일 다운로드1
343정성태6/26/20069703TFS : 10. TFS Bug Snapper v1.0 Released
342정성태6/26/20069087TFS : 9. TFS Notification Web Services - Project Template 1.1 available
341정성태6/25/20069501.NET : 7. VCPROJ - Shared Source Common Language Infrastructure 2.0 Release파일 다운로드1
340정성태6/25/20068776개발환경 구성 : 7. XSLT on the fly.
339정성태6/25/20069240.NET : 6. 무료 - ByesRoad.NetSuit Library
337정성태10/20/200613438Vista : 2. Credential Provider Samples파일 다운로드1
336정성태6/23/20068850.NET : 5. BLINQ using LINQ
335정성태6/23/20069512개발환경 구성 : 6. MSBuild or Team Build Tasks in the Community
334정성태6/26/20068985TFS : 8. Customizing MSF Process Guidance
333정성태6/21/20069245VS.NET IDE : 6. The Visual Studio Hosting Process - VSHost.exe
332정성태6/21/20069289TFS : 7. Team Foundation Power Toys
331정성태6/21/20069051Debug: CardSpaces Crash 를 해결해 가는 디버깅 과정
330정성태10/20/200610370Vista : 1. New API - 스레드 대기 상태를 확인하는 방법 제공
329정성태6/21/20069154.NET : 4. Tech-Ed 2006 - WebCast 자료
328정성태6/23/20069858개발환경 구성 : 5. Robocopy GUI
327정성태6/18/200610479.NET : 3. Open XML을 다루는 코드 스니핏 [1]
326정성태6/18/20069666개발환경 구성 : 4. COM+ 서비스에서 인증서 사용.
325정성태6/17/20069540STL.NET
324정성태6/17/20069310개발환경 구성 : 3. Signed versions of the power toys available on MS Downloads
323정성태6/17/20069657개발환경 구성 : 2. the sandbox projects
322정성태6/17/200610128TFS : 6. TFS 데이터베이스 백업파일 다운로드1
... 31  32  33  [34]  35  36  37  38  39  40  41  42  43  44  45  ...