Пример #1
0
 protected internal void DefinePrimitiveSqlDataType(Type type, string name, string getValueMethod)
 {
     this.DefinePrimitiveSqlDataType(type, name, DataRecordMethods.GetMethod(getValueMethod));
 }
 public DateTimeKindNormalisingDateTimeSqlDateType(ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type type, string typeName, DateTimeKind dateTimeKind, MethodInfo dataRecordGetMethod = null)
     : base(constraintDefaultsConfiguration, type, typeName, dataRecordGetMethod ?? DataRecordMethods.GetMethod(nameof(IDataRecord.GetDateTime)))
 {
     this.dateTimeKind      = dateTimeKind;
     this.specifyKindMethod = type.IsNullableType() ? specifyKindIfUnspecifiedMethodNullable : specifyKindIfUnspecifiedMethod;
 }
Пример #3
0
 public UniversalTimeNormalisingDateTimeSqlDateType(ConstraintDefaults constraintDefaults, string typeName, bool nullable)
     : base(constraintDefaults, nullable ? typeof(DateTime?) : typeof(DateTime), typeName, DataRecordMethods.GetMethod("GetDateTime"))
 {
     this.specifyKindMethod = nullable ? specifyKindIfUnspecifiedMethodNullable : specifyKindIfUnspecifiedMethod;
 }
Пример #4
0
 protected void DefineSqlDataType(Type type, string name, string getValueMethod)
 {
     DefineSqlDataType(type, name, DataRecordMethods.GetMethod(getValueMethod));
 }