Skip to content

Commit

Permalink
Remove unnecessarz WHERE clause (#4066)
Browse files Browse the repository at this point in the history
Closes #4060
Closes #4028
  • Loading branch information
Dick Baker authored Sep 30, 2022
1 parent 7b62d0c commit ec87e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity-framework/core/testing/testing-with-the-database.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ We saw above that when changes are actually committed to the database, we must c
This typically isn't the most efficient way to clear out a table. If test speed is a concern, you may want to use raw SQL to delete the table instead:

```sql
DELETE FROM [Blogs] WHERE 1=1;
DELETE FROM [Blogs];
```

You may also want to consider using the [respawn](https://github.com/jbogard/respawn) package, which efficiently clears out a database. In addition, it does not require you to specify the tables to be cleared, and so your cleanup code does not need to be updated as tables are added to your model.
Expand Down

0 comments on commit ec87e98

Please sign in to comment.