/// <summary> /// Adds a column to the index if columns have not yet been specified /// </summary> /// <param name="columnName">The column name to add</param> public void Column(string columnName) { if (mapping.Columns.UserDefined.Count() > 0) { return; } var originalColumn = mapping.Columns.FirstOrDefault(); var column = originalColumn == null ? new ColumnMapping() : originalColumn.Clone(); column.Name = columnName; mapping.ClearColumns(); mapping.AddColumn(column); }