Example #1
0
        private void SelectToEntity()
        {
            string databaseName = null;

            if (SelectedNode is Database)
            {
                databaseName = (SelectedNode as Database).DatabaseName;
            }
            else if (SelectedNode is Table)
            {
                databaseName = (SelectedNode as Table).DataBaseName;
            }

            var tree = (SelectedNode as ITreeViewModel)?.ParentTreeBase;



            var sToEntWin = new QueryToEntityWindow(tree, databaseName);
            var res       = sToEntWin.ShowDialog();

            if (res != null && res == true)
            {
                Document.Text = sToEntWin.Tag.ToString();
            }
        }
Example #2
0
        private void SelectToEntity()
        {
            var tree = (SelectedNode as ITreeViewModel)?.ParentTreeBase;

            var sToEntWin = new QueryToEntityWindow(tree);
            var res       = sToEntWin.ShowDialog();

            if (res != null && res == true)
            {
                Document.Text = sToEntWin.Tag.ToString();
            }
        }