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; }
public UniversalTimeNormalisingDateTimeSqlDateType(ConstraintDefaults constraintDefaults, string typeName, bool nullable) : base(constraintDefaults, nullable ? typeof(DateTime?) : typeof(DateTime), typeName, DataRecordMethods.GetMethod("GetDateTime")) { this.specifyKindMethod = nullable ? specifyKindIfUnspecifiedMethodNullable : specifyKindIfUnspecifiedMethod; }
protected void DefineSqlDataType(Type type, string name, string getValueMethod) { DefineSqlDataType(type, name, DataRecordMethods.GetMethod(getValueMethod)); }