private void ActivatePlugin() { IPersistenceManager persistenceManager = ApplicationManager.GetInstance().GetPersistenceManager( Constants.PLUGIN_NAME); /* * We support SCE 3.5 and 4.0. use the registry override keys to * use a different invariant name in place of the defaults. */ string providerInvariantName35 = persistenceManager.ReadString( Constants.KEY_DATA_PROVIDER_INVARIANT_NAME_35, Constants.DATA_PROVIDER_INVARIANT_NAME_35); string providerInvariantName40 = persistenceManager.ReadString( Constants.KEY_DATA_PROVIDER_INVARIANT_NAME_40, Constants.DATA_PROVIDER_INVARIANT_NAME_40); SqlCodeAssistManager sqlCodeAssistManager = SqlCodeAssistManager.GetInstance(); sqlCodeAssistManager.RegisterProviderFactoryHandlers( providerInvariantName35, GetMSSCECodeAssistProvider); sqlCodeAssistManager.RegisterProviderFactoryHandlers( providerInvariantName40, GetMSSCECodeAssistProvider); }
private void ActivatePlugin() { IPersistenceManager persistenceManager = ApplicationManager.GetInstance().GetPersistenceManager( Constants.PLUGIN_NAME); string dataProviderInvariantName = persistenceManager.ReadString( Constants.KEY_DATA_PROVIDER_INVARIANT_NAME, Constants.DATA_PROVIDER_INVARIANT_NAME); SqlCodeAssistManager.GetInstance(). RegisterProviderFactoryHandlers( dataProviderInvariantName, GetMSSqlCodeAssistProvider); }