When developers create a relationship, referential integrity between tables is enforced by default. An enforced relationship ensures each value entered in a foreign key column matches an existing value in the related primary key column. Developers

C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development: Build applications with C#, .NET Core, Entity Framework Core, ASP.NET Core, and ML.NET using Visual Studio Code, 4th Edition
ASP.NET Core 3 and Angular 9: Full stack web development with .NET Core 3.1 and Angular 9, 3rd Edition
C# in Depth, 4th Edition

can change the conditions under which referential integrity is enforced by editing the relationship’s properties. When Developers working with SQL Server “Denali”, MS SQL Server 2008 R2 and MS SQL Server 2005 want change relationship properties, they should follow the next steps:

1. In Object Explorer, right-click the table involved in the relationship, and click Design (Modify in SP1 or earlier).

The table opens in Table Designer.

2. From the Table Designer menu, click Relationships.

3. In the Foreign Key Relationships dialog box, select the relationship in the Selected Relationship list.

4. Change properties for the relationship in the grid.

The relationship is updated in the database when they save the table.