Beispiel #1
0
        public virtual async Task <List <TableForeignKey> > GetTableForeignKeysAsync(DbConnection dbConnection, SchemaInfoFilter filter = null)
        {
            List <TableForeignKeyItem> foreignKeyItems = await this.GetTableForeignKeyItemsAsync(dbConnection, filter);

            return(SchemaInfoHelper.GetTableForeignKeys(foreignKeyItems));
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
        public virtual async Task <List <TablePrimaryKey> > GetTablePrimaryKeysAsync(SchemaInfoFilter filter = null)
        {
            List <TablePrimaryKeyItem> primaryKeyItems = await this.GetTablePrimaryKeyItemsAsync(filter);

            return(SchemaInfoHelper.GetTablePrimaryKeys(primaryKeyItems));
        }