public async Task RemoveByProductId(int productId) { var objects = await RepoDbSet .Where(obj => obj.ProductId == productId) .ToListAsync(); RepoDbSet.RemoveRange(objects); }
public async Task RemoveByChangeId(int changeId) { var objects = await RepoDbSet .Where(obj => obj.ChangeId == changeId) .ToListAsync(); RepoDbSet.RemoveRange(objects); }