You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove missing-order enforcement and related code (#944)
Remove the built-in missing-ORDER BY enforcement and all associated plumbing: delete MissingOrder visitor/factory/visitor files, remove ThrowForMissingOrderBy API, drop order-required SqlInstance and related tests/verified outputs, and remove NameOrAlias helper. Update docs and snippets to no longer reference the removed feature and add guidance to use EntityFramework.OrderBy instead. Adjust DbContextBuilder initialization and global usings accordingly.
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L628-L640'title='Snippet source file'>snippet source</a> | <ahref='#snippet-EnableRecordingWithIdentifier'title='Start of snippet'>anchor</a></sup>
625
+
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L573-L585'title='Snippet source file'>snippet source</a> | <ahref='#snippet-EnableRecordingWithIdentifier'title='Start of snippet'>anchor</a></sup>
626
626
<!-- endSnippet -->
627
627
628
628
Then use the same identifier for recording:
@@ -638,7 +638,7 @@ var companies = await httpClient.GetFromJsonAsync<Company[]>("/companies");
638
638
639
639
varentries=Recording.Stop(testName);
640
640
```
641
-
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L601-L611'title='Snippet source file'>snippet source</a> | <ahref='#snippet-RecordWithIdentifier'title='Start of snippet'>anchor</a></sup>
641
+
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L546-L556'title='Snippet source file'>snippet source</a> | <ahref='#snippet-RecordWithIdentifier'title='Start of snippet'>anchor</a></sup>
642
642
<!-- endSnippet -->
643
643
644
644
The results will not be automatically included in verified file so it will have to be verified manually:
@@ -653,10 +653,15 @@ await Verify(
653
653
sql=entries
654
654
});
655
655
```
656
-
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L613-L622'title='Snippet source file'>snippet source</a> | <ahref='#snippet-VerifyRecordedCommandsWithIdentifier'title='Start of snippet'>anchor</a></sup>
656
+
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L558-L567'title='Snippet source file'>snippet source</a> | <ahref='#snippet-VerifyRecordedCommandsWithIdentifier'title='Start of snippet'>anchor</a></sup>
657
657
<!-- endSnippet -->
658
658
659
659
660
+
## Missing OrderBy
661
+
662
+
To detect and correct missing `OrderBy` clauses in EF queries, use [EntityFramework.OrderBy](https://github.com/SimonCropp/EntityFramework.OrderBy).
663
+
664
+
660
665
## ScrubInlineEfDateTimes
661
666
662
667
In some scenarios EntityFrmaeowrk does not parameterise DateTimes. For example when querying [temporal tables](https://learn.microsoft.com/en-us/sql/relational-databases/tables/temporal-tables).
@@ -680,7 +685,7 @@ var settings = new VerifySettings();
680
685
settings.ScrubInlineEfDateTimes();
681
686
awaitVerify(target, settings);
682
687
```
683
-
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L34-L40'title='Snippet source file'>snippet source</a> | <ahref='#snippet-ScrubInlineEfDateTimesInstance'title='Start of snippet'>anchor</a></sup>
688
+
<sup><ahref='/src/Verify.EntityFramework.Tests/CoreTests.cs#L10-L16'title='Snippet source file'>snippet source</a> | <ahref='#snippet-ScrubInlineEfDateTimesInstance'title='Start of snippet'>anchor</a></sup>
0 commit comments