O'Reilly logo

Fluent Entity Framework by Rebecca M. Riordan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrity constraints

To avoid the problems you saw in the last Thinking Hat, database engines support the following kinds of constraints. Most of these are enforced at the database level (not by Entity Framework).

Image Unique Constraint

Most database engines require that primary keys be unique, but you might also need to specify this constraint for other fields, particularly if your candidate key is not the primary key.

Image Referential Integrity Constraint

When two tables are related, you must ensure that all the values in the child table are present in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required