コード例 #1
0
		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);
        }
コード例 #3
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="sqlType"></param>
		internal BinaryType( BinarySqlType sqlType ) : base( sqlType )
		{
		}
コード例 #4
0
		internal AbstractBinaryType(BinarySqlType sqlType)
			: base(sqlType)
		{
		}
コード例 #5
0
		internal SerializableType( System.Type serializableClass, BinarySqlType sqlType ) : base( sqlType )
		{
			this.serializableClass = serializableClass;
			binaryType = ( BinaryType ) TypeFactory.GetBinaryType( sqlType.Length );
		}