Skip to content

Commit 4ea170f

Browse files
committed
order AllData by name
1 parent 00e94e9 commit 4ea170f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project>
33
<PropertyGroup>
44
<NoWarn>CS1591;CS0649;CS8632;EF1001</NoWarn>
5-
<Version>9.0.0</Version>
5+
<Version>9.1.0</Version>
66
<AssemblyVersion>1.0.0</AssemblyVersion>
77
<PackageTags>EntityFramework, Verify</PackageTags>
88
<Description>Extends Verify (https://github.com/VerifyTests/Verify) to allow verification of EntityFramework bits.</Description>

src/Verify.EntityFramework/VerifyEntityFramework.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ public static class VerifyEntityFramework
44
{
55
public static async IAsyncEnumerable<object> AllData(this DbContext data)
66
{
7-
foreach (var entityType in data.EntityTypes().Where(p => !p.IsOwned()))
7+
foreach (var entityType in data
8+
.EntityTypes()
9+
.OrderBy(_ => _.Name)
10+
.Where(_ => !_.IsOwned()))
811
{
912
var clrType = entityType.ClrType;
1013
var set = data.Set(clrType);

0 commit comments

Comments
 (0)