Ejemplo n.º 1
0
        public void ImportSql()
        {
            string file = OpenDialog.GetSqlFile();

            if (string.IsNullOrEmpty(file))
            {
                return;
            }
            m_models.Clear();
            var tables = m_importer.Import(file);

            m_models.AddRange(tables.Where(table => table.Rows.Count > 0).Select(table => new GridViewModel(table)));
            NotifyOfPropertyChange(nameof(Models));
        }