I've two tables Product
and user
. Now, i want to delete multiple records at a time with a relation like: i want to delete all the products related to particular user.
I've delete multiple records code in linq2db Templates
using (var db = new DbNorthwind())
{
db.Product
.Where(p => p.Discontinued)
.Delete();
}
But, how to relate that user table to this code?