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 for CHECK constraints #14425

Closed
Mikilll94 opened this issue Jan 15, 2019 · 2 comments
Closed

Support for CHECK constraints #14425

Mikilll94 opened this issue Jan 15, 2019 · 2 comments
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported good first issue This issue should be relatively straightforward to fix. help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. type-enhancement
Milestone

Comments

@Mikilll94
Copy link

Are there any plans to add support for CHECK constraints in EFCore. It could be useful when you have a column "Gender" and you want to restrict possible values to "Male" and "Female".

Also defining an enum type column type should automatically create a CHECK constraint in database.

Further technical details

EF Core version: ??
Database Provider: ??
Operating system: Windows
IDE: (e.g. Visual Studio 2017 15.9.4)

@bricelam
Copy link
Contributor

Also #2594 and #2595

@ajcvickers ajcvickers added this to the Backlog milestone Jan 16, 2019
@ajcvickers ajcvickers added the help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. label Jan 16, 2019
@Muppets
Copy link
Contributor

Muppets commented Feb 11, 2019

I've taken a stab at this. Probably a bit out of my depth but learnt loads along the way. I've not looked at #2594 or #2595 while doing this, didn't feel I had a good grasp of the requirements there. Also not added Enum support yet either.

@AndriySvyryd AndriySvyryd modified the milestones: Backlog, 3.0.0 Apr 18, 2019
@AndriySvyryd AndriySvyryd added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Apr 18, 2019
@AndriySvyryd AndriySvyryd changed the title Support for CHECK constaints Support for CHECK constraints Apr 18, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0, 3.0.0-preview5 Apr 22, 2019
@bricelam bricelam added the good first issue This issue should be relatively straightforward to fix. label May 31, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0-preview5, 3.0.0 Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported good first issue This issue should be relatively straightforward to fix. help wanted This issue involves technologies where we are not experts. Expert help would be appreciated. type-enhancement
Projects
None yet
Development

No branches or pull requests

5 participants