public void Init() { ObjectFactory.ClearMaps(); Broker.ClearPersistenceBroker(); // make sure analyzer errors are ignored for this test origLevel = GentleSettings.AnalyzerLevel; GentleSettings.AnalyzerLevel = AnalyzerLevel.None; }
public void Init() { ObjectFactory.ClearMaps(); Broker.ClearPersistenceBroker(); // make sure analyzer errors are ignored for this test origLevel = GentleSettings.AnalyzerLevel; GentleSettings.AnalyzerLevel = AnalyzerLevel.None; }
/// <summary> /// Constructor for the GentleAnalyzer base class. /// </summary> /// <param name="provider"></param> protected GentleAnalyzer(IGentleProvider provider) { this.provider = provider; if (maps == null) { maps = new Hashtable(); done = false; } // make sure we use our own PB to avoid using the DefaultProvider when analyzing the database broker = new PersistenceBroker(provider); // this.broker = new PersistenceBroker( provider.Name, provider.ConnectionString ); // set the default analyzer level level = GentleSettings.AnalyzerLevel; }
public virtual void Init(string providerName) { ObjectFactory.ClearMaps(); Broker.ClearPersistenceBroker(); ObjectFactory.ClearMaps(); IGentleProvider provider = ProviderFactory.GetProvider(providerName, ""); Assert.AreEqual(provider.Name, providerName, "Wrong provider returned from factory!"); sf = provider.GetSqlFactory(); broker = new PersistenceBroker(provider); sb = new SqlBuilder(provider); // make sure analyzer errors are ignored for this test origLevel = GentleSettings.AnalyzerLevel; GentleSettings.AnalyzerLevel = AnalyzerLevel.None; }
public virtual void Init( string providerName ) { ObjectFactory.ClearMaps(); Broker.ClearPersistenceBroker(); ObjectFactory.ClearMaps(); IGentleProvider provider = ProviderFactory.GetProvider( providerName, "" ); Assert.AreEqual( provider.Name, providerName, "Wrong provider returned from factory!" ); sf = provider.GetSqlFactory(); broker = new PersistenceBroker( provider ); sb = new SqlBuilder( provider ); // make sure analyzer errors are ignored for this test origLevel = GentleSettings.AnalyzerLevel; GentleSettings.AnalyzerLevel = AnalyzerLevel.None; }
/// <summary> /// Constructor for the GentleAnalyzer base class. /// </summary> /// <param name="provider"></param> protected GentleAnalyzer( IGentleProvider provider ) { this.provider = provider; if( maps == null ) { maps = new Hashtable(); done = false; } // make sure we use our own PB to avoid using the DefaultProvider when analyzing the database broker = new PersistenceBroker( provider ); // this.broker = new PersistenceBroker( provider.Name, provider.ConnectionString ); // set the default analyzer level level = GentleSettings.AnalyzerLevel; }