Ejemplo n.º 1
0
        public void SetUp()
        {
            IDbProvider dbProvider = DbProviderFactory.GetDbProvider("SqlServer-1.1");
            dbProvider.ConnectionString =
                "Server=(local);Integrated Security=no;User ID=springqa;PWD=springqa;initial catalog=SpringAir;";
           
            dao = new AirportDao();
            dao.DbProvider = dbProvider;
            /*
			ReflectiveDbConnectionFactory connectionfactory = new ReflectiveDbConnectionFactory();
			connectionfactory.ConnectionType = typeof (SqlConnection);
			connectionfactory.ConnectionString =
				"Server=(local)\\Spring;Integrated Security=no;User ID=sa;PWD=spring;initial catalog=SpringAir;";

            dao = new AirportDao();
            dao.CommandType = typeof (SqlCommand);
			dao.ConnectionFactory = connectionfactory;
            dao.AirportMapper = new AirportMapper();
             */
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            IDbProvider dbProvider = DbProviderFactory.GetDbProvider("SqlServer-1.1");

            dbProvider.ConnectionString =
                "Server=(local);Integrated Security=no;User ID=springqa;PWD=springqa;initial catalog=SpringAir;";

            dao            = new AirportDao();
            dao.DbProvider = dbProvider;

            /*
             *          ReflectiveDbConnectionFactory connectionfactory = new ReflectiveDbConnectionFactory();
             *          connectionfactory.ConnectionType = typeof (SqlConnection);
             *          connectionfactory.ConnectionString =
             *                  "Server=(local)\\Spring;Integrated Security=no;User ID=sa;PWD=spring;initial catalog=SpringAir;";
             *
             * dao = new AirportDao();
             * dao.CommandType = typeof (SqlCommand);
             *          dao.ConnectionFactory = connectionfactory;
             * dao.AirportMapper = new AirportMapper();
             */
        }