public IIndexConfig Create(ITableConfig table, string identifier, IEnumerable <string> columnNames, IndexFlags?flags) { var columns = columnNames.Select( columnName => table.GetColumn(ColumnConfig.By(columnName, ColumnFlags.None)) ).Where(column => column != null); return(this.Create(table, identifier, columns, flags)); }
public static IColumnConfig Column(this ITableConfig table, PropertyInfo property, ColumnFlags?flags = null) { var selector = ColumnConfig.By(property, flags); var column = table.GetColumn(selector); if (column == null) { column = table.CreateColumn(selector); } return(column); }
public static IColumnConfig Column(this ITableConfig table, string columnName, ColumnFlags?flags = null) { var selector = ColumnConfig.By(columnName, flags); var column = table.GetColumn(selector); if (column == null) { column = table.CreateColumn(selector); } return(column); }