Disable cascade delete on EF Core 2 globally : <p>I need to know about ways of disabling cascade delete in <code>EF Core 2</code> globally. Any help is appricated.</p>

<p>In EF 6.x we used following code to disable cascade delete on both <code>OneToMany</code> and <code>ManyToMany</code> realtions:</p>

<pre><code>builder.Conventions.Remove&lt;OneToManyCascadeDeleteConvention&gt;();
builder.Conventions.Remove&lt;ManyToManyCascadeDeleteConvention&gt;();
</code></pre>
