title: EntityFramework - Port WithRequired to EF Core
body: <p>I'm porting an application from MVC5/EF6 to MVC6/EF7, but having an issue with this particular line: </p>
  
  <pre><code>        modelBuilder.Entity&lt;Client&gt;().HasMany(c =&gt; c.Payments).WithRequired(e =&gt; e.Client).WillCascadeOnDelete(false);
  </code></pre>
  
  <p>Apparently the WillCascadeOnDelete is transformed to the OnDelete with restrict as parameter, but I can't find any documentation on the "WithRequired" part which has disappeared too in EF7. Has 'WithOne' the same impact or am I completely wrong here :</p>
  
  <pre><code>        modelBuilder.Entity&lt;Client&gt;().HasMany(c =&gt; c.Payments).WithOne(e =&gt; e.Client).OnDelete(Microsoft.EntityFrameworkCore.Metadata.DeleteBehavior.Restrict);
  </code></pre>