我有2张桌子,
POST (idpost, user, text)
COMMENT (idcomment, idpost, text)
我想删除所有带有“usertest”之类用户的帖子的评论,
delete from COMMENT c join POST p on c.idpost = p.idpost
where p.user like 'usertest'
如何在亚音速 3 中做到这一点?
我试过这样的东西,但是,当然,它不起作用,
COMMENT.Delete(x => x.POST.where(y => y.user == "usertest"));