Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update indexes.md #4950

Merged
merged 2 commits into from
Feb 15, 2025
Merged

Update indexes.md #4950

merged 2 commits into from
Feb 15, 2025

Conversation

ousiax
Copy link
Contributor

@ousiax ousiax 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))?

@ousiax
Copy link
Contributor Author

ousiax 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