How can I delete multiple rows in a single SQL query for Oracle using Entity Framework?
"DELETE FROM WOTRANSITION WHERE woiddisplay = @id OR woid = @id"
Context.Database.ExecuteSqlCommand(
"DELETE FROM WOTRANSITION WHERE woiddisplay = @id OR woid = @id",
new[] { new SqlParameter("@id", id) });
Example code above is wrong and will return error:
Unable to cast object of type 'System.Data.SqlClient.SqlParameter' to type 'Oracle.ManagedDataAccess.Client.OracleParameter