protected void StartValues() { TextAlign = HorizontalAlignment.Right; ValidateOnLeave = true; Nullable = false; NowOnDefault = false; Style = DateTimeStyle.Date; SqlType = DateTimeSqlType.Smalldatetime; }
/// <summary> /// Constructor for specifying a datetime with a scale. Use <see cref="SqlTypeFactory.GetDateTime"/>. /// </summary> /// <param name="sqlType">The sql type to use for the type.</param> public DateTimeType(DateTimeSqlType sqlType) : base(sqlType) { }
/// <summary></summary> public static DateTimeSqlType GetDateTime() { string key = typeof( DateTimeSqlType ).Name; DateTimeSqlType returnSqlType = ( DateTimeSqlType ) sqlTypes[ key ]; if( returnSqlType == null ) { returnSqlType = new DateTimeSqlType(); sqlTypes.Add( key, returnSqlType ); } return returnSqlType; }