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;
		}
예제 #2
0
        /// <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);
        }
예제 #3
0
		/// <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)
		{
		}
예제 #4
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="sqlType"></param>
		internal StringClobType(StringSqlType sqlType) : base(sqlType)
		{
		}