public static BinarySqlType GetBinary(int length)
		{
			string key = GetKeyForLengthBased(typeof(BinarySqlType).Name, length);
			BinarySqlType returnSqlType = (BinarySqlType) sqlTypes[key];
			if (returnSqlType == null)
			{
				returnSqlType = new BinarySqlType(length);
				sqlTypes.Add(key, returnSqlType);
			}
			return returnSqlType;
		}
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="length"></param>
        /// <returns></returns>
        public static BinarySqlType GetBinary(int length)
        {
            string        key           = GetKeyForLengthBased(typeof(BinarySqlType).Name, length);
            BinarySqlType returnSqlType = ( BinarySqlType )sqlTypes[key];

            if (returnSqlType == null)
            {
                returnSqlType = new BinarySqlType(length);
                sqlTypes.Add(key, returnSqlType);
            }
            return(returnSqlType);
        }
		/// <summary>
		/// 
		/// </summary>
		/// <param name="sqlType"></param>
		internal BinaryType( BinarySqlType sqlType ) : base( sqlType )
		{
		}
Пример #4
0
		internal AbstractBinaryType(BinarySqlType sqlType)
			: base(sqlType)
		{
		}
		internal SerializableType( System.Type serializableClass, BinarySqlType sqlType ) : base( sqlType )
		{
			this.serializableClass = serializableClass;
			binaryType = ( BinaryType ) TypeFactory.GetBinaryType( sqlType.Length );
		}