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="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 ) { }
internal AbstractBinaryType(BinarySqlType sqlType) : base(sqlType) { }
internal SerializableType( System.Type serializableClass, BinarySqlType sqlType ) : base( sqlType ) { this.serializableClass = serializableClass; binaryType = ( BinaryType ) TypeFactory.GetBinaryType( sqlType.Length ); }