public virtual async Task <List <TableForeignKey> > GetTableForeignKeysAsync(DbConnection dbConnection, SchemaInfoFilter filter = null) { List <TableForeignKeyItem> foreignKeyItems = await this.GetTableForeignKeyItemsAsync(dbConnection, filter); return(SchemaInfoHelper.GetTableForeignKeys(foreignKeyItems)); }
public virtual async Task <List <TableIndex> > GetTableIndexesAsync(DbConnection dbConnection, SchemaInfoFilter filter = null, bool includePrimaryKey = false) { List <TableIndexItem> indexItems = await this.GetTableIndexItemsAsync(dbConnection, filter, includePrimaryKey); return(SchemaInfoHelper.GetTableIndexes(indexItems)); }
public virtual async Task <List <TablePrimaryKey> > GetTablePrimaryKeysAsync(SchemaInfoFilter filter = null) { List <TablePrimaryKeyItem> primaryKeyItems = await this.GetTablePrimaryKeyItemsAsync(filter); return(SchemaInfoHelper.GetTablePrimaryKeys(primaryKeyItems)); }