I need to know about ways of disabling cascade delete in EF Core 2 globally. Any help is appricated.
In EF 6.x we used following code to disable cascade delete on both OneToMany and ManyToMany realtions:
builder.Conventions.Remove<OneToManyCascadeDeleteConvention>();
builder.Conventions.Remove<ManyToManyCascadeDeleteConvention>();