public static StringSqlType GetString(int length) { string key = GetKeyForLengthBased(typeof(StringSqlType).Name, length); StringSqlType returnSqlType = (StringSqlType) sqlTypes[key]; if (returnSqlType == null) { returnSqlType = new StringSqlType(length); sqlTypes.Add(key, returnSqlType); } return returnSqlType; }
/// <summary> /// /// </summary> /// <param name="length"></param> /// <returns></returns> public static StringSqlType GetString(int length) { string key = GetKeyForLengthBased(typeof(StringSqlType).Name, length); StringSqlType returnSqlType = ( StringSqlType )sqlTypes[key]; if (returnSqlType == null) { returnSqlType = new StringSqlType(length); sqlTypes.Add(key, returnSqlType); } return(returnSqlType); }
/// <summary> /// Initialize a new instance of the TypeType class using a /// <see cref="SqlType"/>. /// </summary> /// <param name="sqlType">The underlying <see cref="SqlType"/>.</param> internal TypeType(StringSqlType sqlType) : base(sqlType) { }
/// <summary> /// /// </summary> /// <param name="sqlType"></param> internal StringClobType(StringSqlType sqlType) : base(sqlType) { }