Ejemplo n.º 1
0
        void BuildStore()
        {
            if (String.IsNullOrEmpty(ConnectionString))
            {
                var dialog = new ConnectDialog();
                dialog.ShowDialog();
                ConnectionString = dialog.ConnectionString;

                if (String.IsNullOrEmpty(ConnectionString))
                    return;
            }

            Store = new QueryCostStore(new PlanParser(new QueryCostDataGateway(ConnectionString)));
            ShowCosts = false; //caller flips it first time used
        }
Ejemplo n.º 2
0
        public ScriptCoster(DTE dte)
        {
            if (String.IsNullOrEmpty(ConnectionString))
            {
                var dialog = new ConnectDialog();
                dialog.ShowDialog();
                ConnectionString = dialog.ConnectionString;

                if (String.IsNullOrEmpty(ConnectionString))
                    return;
            }

            Dte = dte;
            Store = new QueryCostStore(new PlanParser(new QueryCostDataGateway(ConnectionString)));
            ShowCosts = false; //caller flips it first time used
        }
Ejemplo n.º 3
0
        public ScriptCoster(DTE dte)
        {
            if (String.IsNullOrEmpty(ConnectionString))
            {
                var dialog = new ConnectDialog();
                dialog.ShowDialog();
                ConnectionString = dialog.ConnectionString;

                if (String.IsNullOrEmpty(ConnectionString))
                {
                    return;
                }
            }

            Dte       = dte;
            Store     = new QueryCostStore(new PlanParser(new QueryCostDataGateway(ConnectionString)));
            ShowCosts = false; //caller flips it first time used
        }