Replies: 1 comment
-
To create an index that spans multiple columns, chain together calls to
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there.
I am new in the community, and trying to use a new thing for ORM, so I switch from EF Core to Dapper, then I realize the Dapper doesn't have a migration system by default, so I find the package.
You could choose multi-columns at EF Core, for example,
builder.HasIndex(x => new { x.Name, x.UserId}).IsUnique()
.After I read the documentation, I got how to create an index, but I couldn't choose multi-columns for an index.
Please help me to figure out how to choose multi-columns for an index.
Beta Was this translation helpful? Give feedback.
All reactions