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

Support materializing clr enums from strings #3944

Closed
natemcmaster opened this issue Dec 2, 2015 · 1 comment
Closed

Support materializing clr enums from strings #3944

natemcmaster opened this issue Dec 2, 2015 · 1 comment

Comments

@natemcmaster
Copy link
Contributor

Similar to #3620 but a slightly different scenario. Possible overlap with #242

Example usage scenario: SqlServerDatabaseModelFactory.ConvertToReferentialAction()
Would be nice to define simple mapping for enum values from well-known database strings.

                case "RESTRICT":
                    return ReferentialAction.Restrict;

                case "CASCADE":
                    return ReferentialAction.Cascade;

                case "SET_NULL":
                    return ReferentialAction.SetNull;

                case "SET_DEFAULT":
                    return ReferentialAction.SetDefault;

                case "NO_ACTION":
                    return ReferentialAction.NoAction;
@rowanmiller
Copy link
Contributor

Triage: Agreed that this is covered by #242 since it is not a direct matching of column value to enum value name.

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants