---
title: "Comment by Illia Ratkevych on \"EF Core and PostgreSQL: Check Constraints\" | Hashnode"
description: "Thanks for the article. I assumed that EF must have something like you specified. However, it did not recognize .HasCheckConstraint() method :( I didn't find in"
url: "https://hashnode.com/posts/ef-core-and-postgresql-check-constraints/64c813353cc2baa64fa86153/comment/677314157d44ad2d82f1fe89"
---

[Discussion](https://hashnode.com/posts/ef-core-and-postgresql-check-constraints/64c813353cc2baa64fa86153)

Comment [EF Core and PostgreSQL: Check Constraints](https://hashnode.com/posts/ef-core-and-postgresql-check-constraints/64c813353cc2baa64fa86153)

[Illia Ratkevych](https://hashnode.com/@einsteins_brain)

[Dec 30, 2024](https://hashnode.com/posts/ef-core-and-postgresql-check-constraints/64c813353cc2baa64fa86153/comment/677314157d44ad2d82f1fe89)

Thanks for the article. I assumed that EF must have something like you specified. However, it did not recognize .HasCheckConstraint() method :(

I didn't find info about EF version you used. I can assume that in 2023 it was EF Core 7 or something like that, but still not sure.
