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
It's not obvious whether it's possible to provide complex path like that somehow: builder.HasIndex(entity => new { entity.UpperLevelField, entity.InternalMappedInstance.Field }).IsUnique()
Wheh I use it like that it gives the error. Providing char array doesn't work too.
Regards,
Vlad.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: 2d7751b1-4430-a31c-bf32-0839f5f885b8
Version Independent ID: 438949c9-1a1e-5bea-0bbe-ecd17de33865
Hi
It's not obvious whether it's possible to provide complex path like that somehow:
builder.HasIndex(entity => new { entity.UpperLevelField, entity.InternalMappedInstance.Field }).IsUnique()
Wheh I use it like that it gives the error. Providing char array doesn't work too.
Regards,
Vlad.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
1.xml](https://github.com/dotnet/EntityFramework.ApiDocs/blob/live/dotnet/xml/Microsoft.EntityFrameworkCore.Metadata.Builders/EntityTypeBuilder
1.xml)The text was updated successfully, but these errors were encountered: