private ColumnTypeMetadata GetColumnTypeMetadata(string columnTypeName, bool unsigned, int length) { ColumnTypeMetadata columnTypeMetadata; if (!m_columnTypeMetadataLookup.TryGetValue(ColumnTypeMetadata.CreateLookupKey(columnTypeName, unsigned, length), out columnTypeMetadata) && length != 0) { m_columnTypeMetadataLookup.TryGetValue(ColumnTypeMetadata.CreateLookupKey(columnTypeName, unsigned, 0), out columnTypeMetadata); } return(columnTypeMetadata); }
private void AddColumnTypeMetadata(ColumnTypeMetadata columnTypeMetadata) { m_columnTypeMetadata.Add(columnTypeMetadata); string lookupKey = columnTypeMetadata.CreateLookupKey(); if (!m_columnTypeMetadataLookup.ContainsKey(lookupKey)) { m_columnTypeMetadataLookup.Add(lookupKey, columnTypeMetadata); } if (!m_mySqlDbTypeToColumnTypeMetadata.ContainsKey(columnTypeMetadata.MySqlDbType)) { m_mySqlDbTypeToColumnTypeMetadata.Add(columnTypeMetadata.MySqlDbType, columnTypeMetadata); } }