Skip to content

Conversation

@alyiox
Copy link
Contributor

@alyiox alyiox commented Feb 13, 2025

-modelBuilder.Entity<Blog>()
-    .HasIndex(b => new { b.FirstName, b.LastName }, "IX_Names_Ascending");
+modelBuilder.Entity<Person>()
+    .HasIndex(p => new { p.FirstName, p.LastName }, "IX_Names_Ascending");

-modelBuilder.Entity<Blog>()
-    .HasIndex(b => new { b.FirstName, b.LastName }, "IX_Names_Descending")
+modelBuilder.Entity<Person>()
+    .HasIndex(p => new { p.FirstName, p.LastName }, "IX_Names_Descending")
    .IsDescending();

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, amended the sample just above as well.

@roji
Copy link
Member

roji commented Feb 14, 2025

@OusiaX can you please accept the Contributor License Agreement (see #4950 (comment))?

@alyiox
Copy link
Contributor Author

alyiox commented Feb 15, 2025

@dotnet-policy-service agree

@roji roji merged commit 939cb0d into dotnet:main Feb 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants