title: Cascade delete using Fluent API
body: <p>I have two entities. <code>Profile</code> and <code>ProfileImages</code>. After fetching a <code>Profile</code> I want to delete <code>ProfileImages</code> through <code>Profile</code> without it just removing the reference to <code>Profile</code> (setting it to <code>null</code>). How can this be done with fluent API and Cascading Delete? Do I set the <code>HasRequired</code> attribute or the <code>CascadeDelete</code> attribute?</p>
  
  <pre><code>public class Profile 
  {
      //other code here for entity
      public virtual ICollection&lt;ProfileImage&gt; ProfileImages { get; set; }
  }
  
  public class ProfileImage 
  {
      // other code here left out        
      [Index]
      public string ProfileRefId { get; set; }
  
      [ForeignKey("ProfileRefId")]
      public virtual Profile Profile { get; set; }
  }
  </code></pre>