I don't really like the fluent API
I would really enjoy this functionality: __[CascadeOnDelete]__
```
public class SimpleVideo
{
public string Name { get; set; }
public int SimpleVideoId { get; set; }
[CascadeOnDelete]
public virtual List<Sub> Subs { get; set; }
}
public class Sub
{
public int SubId { get; set; }
public string Language { get; set; }
}
```
Comments: **EF Team Triage:** If you include a foreign key in your class then we will setup a cascade delete if it is non-nullable. Given that this reduces the scenarios where this annotation would be useful we don't feel like it is a common enough scenario to warrant a data annotation (we typically only create annotations for the most common cases).
I would really enjoy this functionality: __[CascadeOnDelete]__
```
public class SimpleVideo
{
public string Name { get; set; }
public int SimpleVideoId { get; set; }
[CascadeOnDelete]
public virtual List<Sub> Subs { get; set; }
}
public class Sub
{
public int SubId { get; set; }
public string Language { get; set; }
}
```
Comments: **EF Team Triage:** If you include a foreign key in your class then we will setup a cascade delete if it is non-nullable. Given that this reduces the scenarios where this annotation would be useful we don't feel like it is a common enough scenario to warrant a data annotation (we typically only create annotations for the most common cases).