Context: Visual Studio, Blazor .NET 5, Azure SQL Server
I have an entity with two FK. If I delete a record in one the FK tables I get the typical Referencing error. In https://docs.microsoft.com/en-us/ef/core/saving/cascade-delete it seems to say the Cascade Delete is the default. When I generate a new Migration (add-migration cascade) there is no
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
... attached to the FK properties of the entity in question in the Migration documents generated.
Is there an Attribute that can be applied to the FK property in the entity class?
Is there some other way of doing this in code?
How do I modify the migration documentation to entrench th?