C# 클래스 Shiloh.DataGeneration.ValueConstraints.ValueConstraints

Defines the current set of value constraints (or range limits) for generating random data.
This is a static class because we need to ensure that the defaults and constraints used by the RandomGenerator to create anonymous test data are the same defaults and constraints used by the DbHelper to insert those values into the database. The main case for this is when a date value is supposed to be null, the min sql value is used (since it cannot be null in memory). When inserting the data..if the value is the min value, a DBNull is actually inserted. The comparison against min value to determine if a DBNull should be inserted is the purpose for this class and the DefaultConstraints class.
파일 보기 프로젝트 열기: ChrisEdwards/Fluency

공개 메소드들

메소드 설명
Use ( IValueConstraints valueConstraints ) : void

Uses the specified ValueConstraints for all subsequent calls to Get.

메소드 상세

Use() 공개 정적인 메소드

Uses the specified ValueConstraints for all subsequent calls to Get.
public static Use ( IValueConstraints valueConstraints ) : void
valueConstraints IValueConstraints The value constraints.
리턴 void