I'm using code-first with EF Core 3.1.2
I have established the following two-way one-to-one relationship in the OnModelCreating method of my DbContext.
modelBuilder.Entity<Inspection>()
.HasOne<Defect>(i => i.SpecialDefect)
.WithOne(d => d.SpecialInspection);
This creates foreign key constraints in the database. I would like these constrains to be non-enforced. i.e. I would like the "Enforce Foreign Key Constraint" option to be set to "No". By default, this is set to yes.
Is this possible? If so, how might I do this?