Esempio n. 1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="length"></param>
        /// <returns></returns>
        public static NullableType GetStringType(int length)
        {
            string key = GetKeyForLengthBased(NHibernateUtil.String.Name, length);

            NullableType returnType = (NullableType) typeByTypeOfName[key];
            if (returnType == null)
            {
                returnType = new StringType(SqlTypeFactory.GetString(length));
                AddToTypeOfNameWithLength(key, returnType);
            }

            return returnType;
        }
		public static NullableType GetStringType(int length)
		{
			string key = GetKeyForLengthBased(NHibernateUtil.String.Name, length);

			IType returnType;
			if (!typeByTypeOfName.TryGetValue(key, out returnType))
			{
				returnType = new StringType(SqlTypeFactory.GetString(length));
				AddToTypeOfNameWithLength(key, returnType);
			}

			return (NullableType)returnType;
		}
		public EmptyStringType()
		{
			stringType = (StringType) NHibernateUtil.String;
		}