예제 #1
0
		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;
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
        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;
        }
예제 #5
0
		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;
		}
예제 #6
0
		/// <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;
		}