EF automatically deletes related records in the middle table for many-to-many relationship entities if one or the other entity is deleted.
Thus, EF enables the cascading delete effect by default for all the entities.
If you want manually handle you can use:
.WillCascadeOnDelete(false);
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity()
.HasOptional(c => c.child)
.WithMany()
.WillCascadeOnDelete(false);
}