Пример #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 PostgresqlRenderer();
 }