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

Too long constraint name for the auto-generated enum constraints #20867

Closed
henrikdahl8240 opened this issue May 6, 2020 · 1 comment
Closed

Comments

@henrikdahl8240
Copy link

I have several cases, where the auto-generated name for an enum constraint is too long, i.e. > 128 characters. It is this feature I talk about: https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-5.0/whatsnew#generation-of-check-constraints-for-enum-mappings

In case of foreign keys, the auto-generated constraint name may be overruled by invoking .HasConstraintName.

It seems like there currently is no .HasConstraintName for these enum related constraints. In my opinion, you need to add that, so these auto-generated names can also be overridden because otherwise these constraints will prevent usage of EF Core.

@AndriySvyryd
Copy link
Member

Duplicate of #18958

@AndriySvyryd AndriySvyryd marked this as a duplicate of #18958 May 8, 2020
@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants