public List <TableInformationModel> GetTableDefinitions(bool useEFCore5)
        {
            var launcher = new EfRevEngLauncher(null, useEFCore5);

            List <TableInformationModel> tables;

            if (_databaseType == DatabaseType.Undefined)
            {
                tables = launcher.GetDacpacTables(_connectionString);
            }
            else
            {
                tables = launcher.GetTables(_connectionString, _databaseType);
            }

            foreach (var item in tables)
            {
                if (!item.HasPrimaryKey)
                {
                    item.HasPrimaryKey      = true;
                    item.ShowKeylessWarning = true;
                }
            }

            return(tables);
        }
Example #2
0
        public List <TableModel> GetTableDefinitions(bool useEFCore5)
        {
            var launcher = new EfRevEngLauncher(null, useEFCore5);

            List <TableModel> tables;

            if (_databaseType == DatabaseType.Undefined)
            {
                tables = launcher.GetDacpacTables(_connectionString);
            }
            else
            {
                tables = launcher.GetTables(_connectionString, _databaseType, _schemas);
            }

            return(tables);
        }