예제 #1
0
        public string Render(SelectQuery selectQuery, DatabaseType databaseType)
        {
            ISqlRenderer renderer;
            switch (databaseType)
            {
                case DatabaseType.SqlServer:
                case DatabaseType.SqlServerCompact:
                    renderer = new SqlServerRenderer();
                    break;
                default:
                    renderer = new PostgresqlRenderer();
                    break;
            }

            return renderer.Render(selectQuery);
        }
예제 #2
0
 public void TearDown()
 {
     _renderer = null;
 }
예제 #3
0
 public void SetUp()
 {
     _renderer = new SqlServerRenderer();
 }