C# 클래스 Fluency.DataGeneration.DefaultValues

Defines the current set of default values used for 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 ( IDefaultValues defaultValues ) : void

Uses the specified default values for all subsequent calls to Get.

메소드 상세

Use() 공개 정적인 메소드

Uses the specified default values for all subsequent calls to Get.
public static Use ( IDefaultValues defaultValues ) : void
defaultValues IDefaultValues The default values.
리턴 void