[![我有三个表见图像。我想一次从所有三个表中删除一个特定用户。我可以这样做吗?请帮帮我
我正在尝试这种方式
PropertyComEntities db = new PropertyComEntities();
User userObj = db.Users.SingleOrDefault(a => a.userID == ID);
expert expObj = db.experts.SingleOrDefault(a => a.userID == id);
db.Users.Remove(userObj);
db.experts.Remove(expObj);
db.SaveChanges();
]