title: Entity Framework CTP5, code-first. Many to many with cascade delete
body: <p>I have two entities (Customer and CustomerRole) and would like to declare many-to-many relationship between them. I can do using the following code: </p>
  
  <pre><code>modelBuilder.Entity&lt;CustomerRole&gt;()
          .HasMany(cr =&gt; cr.Customers) 
          .WithMany(c =&gt; c.CustomerRoles)
          .Map(m =&gt; m.ToTable("Customer_CustomerRole_Mapping"));
  </code></pre>
  
  <p>But it creates the relationship (and the third mapping table) with cascade delete switched off by default. How can I tell EF to create the relationship with cascade delete switched on when using many-to-many?</p>