Developers can explicitly disable check constraints for replication, which can be useful if they are publishing data from a previous version of SQL Server. In this case developers should follow the next steps:

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

1. In Object Explorer, expand the table with the constraint they want to modify, and then expand the Constraints folder.

2. Right-click the constraint and then click Design (Modify in SP1 or earlier).

3. In the Check Constraints dialog box, select a value of No for Enforce For Replication.

4. Click Close.