Entity Framework Cascade Delete For Inherited class
Apparently Cascade Deleting with Entity Framework is very confusing. I found lot's of questions but I have not found a solution for my problem. If I manually set the "Delete Rule" to cascade it all works. But via Fluent API I haven't found a way to set this property in the database. In my case I have a base class (with it's own table in the database) public abstract class PropertyBase { public int PropertyID { get; set; } public string Name { get; set; } public virtual AspectBase AspectBase { get; set; } } And I have derived classes which are stored Table Per Type. public class TextProperty :