void IExecuteDDL.Execute(ISQLDDLStatement Statement) { bool returnDataSet = false; DbConnection connection = new SqlConnection(_conn); DbCommand command = GetSQLServerCommandFromDDLScript(Statement); StaticDatabaseFunctions.ExecSqlCommand(connection, command, returnDataSet, null); }
void IExecuteDDL.Execute(ISQLDDLStatement Statement) { bool returnDataSet = false; DbConnection connection = new SQLiteConnection($"Data Source={_dataFile};Version=3;"); DbCommand command = GetSQLiteCommandFromDDLScript(Statement); StaticDatabaseFunctions.ExecSqlCommand(connection, command, returnDataSet, null); }
private DbCommand GetSQLServerCommandFromDDLScript(ISQLDDLStatement Statement) { SqlCommand command = new SqlCommand(Statement.PreparedStatement); return(command); }
private SQLiteCommand GetSQLiteCommandFromDDLScript(ISQLDDLStatement Statement) { SQLiteCommand command = new SQLiteCommand(Statement.PreparedStatement); return(command); }