public void AddColumn(string dbTableName, ColumnName columnName)
 {
     IDictionary<string, ColumnName> columns;
     if (!ColumnsNames.TryGetValue(dbTableName, out columns))
     {
         columns = new Dictionary<string, ColumnName>();
         ColumnsNames[dbTableName] = columns;
     }
     columns[columnName.DbName] = columnName;
 }
 public ColumnName GetColumnName(string dbName, WordsExtraction extraction, NameFormat nameFormat)
 {
     var words = GetLanguageWords(nameFormat.Culture);
     var columnName = new ColumnName { DbName = dbName };
     columnName.NameWords = ExtractWords(words, dbName, extraction);
     // if no extraction (preset name, just copy it)
     if (extraction == WordsExtraction.None)
         columnName.PropertyName = dbName;
     else
         columnName.PropertyName = Format(words, columnName.NameWords, nameFormat.Case, Singularization.DontChange);
     return columnName;
 }