private async Task <List <TableModel> > GetTablesAsync(DatabaseInfo dbInfo, bool useEFCore5, SchemaInfo[] schemas) { if (dbInfo.DataConnection != null) { dbInfo.DataConnection.Open(); dbInfo.ConnectionString = DataProtection.DecryptString(dbInfo.DataConnection.EncryptedConnectionString); } var builder = new TableListBuilder(dbInfo.ConnectionString, dbInfo.DatabaseType, schemas); return(await System.Threading.Tasks.Task.Run(() => builder.GetTableDefinitions(useEFCore5))); }
private async Task <List <TableModel> > GetEdmxTablesAsync(string dacpacPath, bool useEFCore5) { var builder = new TableListBuilder(dacpacPath, DatabaseType.Edmx, null); return(await System.Threading.Tasks.Task.Run(() => builder.GetTableDefinitions(useEFCore5))); }