where condition in linq c#. you can filter the record using where condition with keyword operator =
var tagsInDb = db.mytable.Where(a => a.PostId == post.PostId);