If you use FluentAPI, you can do something similar to this. I think it's more challenging with Data Annotations. You may have to write custom SQL for it.
{
modelBuilder.Entity<DerivedFoo>()
.HasMany(p => p.User)
.OnDelete(DeleteBehavior.Restrict); // This turns off cascade delete
}