How to delete child automatically based on parent deletion for database first approach (.edmx)?
问题 Below are my 2 class sharing 1 to many relationship : public partial class Employee { public int Id { get; set; } public string Name { get; set; } public virtual ICollection<Skills> Skills { get; set; } } public partial class Skills { public int Id { get; set; } public Nullable<int> EmployeeId { get; set; } public string Skills { get; set; } public virtual Employee Employee { get; set; } } Now I am trying to remove employees with its corresponding skills in following way : 1) Deleting both