Microsoft MVP성태의 닷넷 이야기
.NET : 46. Validation Application Block (Enterprise Library 3.0) [링크 복사], [링크+제목 복사],
조회: 9347
글쓴 사람
정성태 (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)
213정성태4/13/20069011Introduction to the MSN Messenger Activity SDK
212정성태4/13/200611074FIN_WAIT_2 상태에 대하여
211정성태4/13/20069679Override CLR Assembly Probing Logic
210정성태4/13/200610129Web.config의 기본 <appSettings /> Handler 교체
209정성태3/25/200610037Win32 FileID API Library
208정성태4/13/20069630(거의)모든 DB 에 대한 ADO.NET Data Provider (유료)목록
205정성태4/13/20069701Static Code Analyzer
206정성태4/13/20069385    답변글 Visual C++ Express를 사용한 보안 응용 프로그램 빌드
203정성태4/13/20069286WGF (Windows Graphic Foundation) [1]
202정성태4/13/20069106사용자 컴퓨터 환경 조사 결과(외국 사례)
201정성태4/13/200612862MySQLDirect .NET Data Provider
207정성태4/13/20068657    답변글 무료: Download Connector/Net 1.0 (MySQL) [1]
200정성태4/13/20069083Understanding Classic COM Interoperability With .NET Applications파일 다운로드1
199정성태4/13/20069361How to get a V2.0 ICorDebug object
198정성태4/13/20069427Whidbey breaking change --- Caching binding failures [1]
197정성태4/13/20068722The JIT does dead-code elimination in Debuggable code
195정성태4/13/20068799910442 - Working with Web Resources in ASP.NET 2.0
194정성태4/13/20069346ASP.NET 2.0 WebPart - SQL Server Error 26: Error Locating Server/Instance Specified
193정성태4/13/20069329WCF - Breaking Changes between Jan CTP and Feb CTP파일 다운로드1
192정성태4/13/20068889Cassini Update
191정성태4/13/20069950LeechBlocker ISAPI Filter
189정성태4/13/20069234The New Anonymous Types Feature in C# 3.0 [1]
188정성태3/8/20069285Microsoft Anti-Cross Site Scripting Library V1.0
196정성태4/13/20068805    답변글 왜 사용해야 하는가?
187정성태4/13/20068646제 1회 INETA 세미나
186정성태4/13/20069356Internet Information Services (IIS) 6.0 Manager for Windows XP
... 31  32  33  34  35  36  37  38  [39]  40  41  42  43  44  45  ...