views:

192

answers:

1

Hi I am trying to delete list of albums from Album table. Following is the syntax but it fails saying "Lambda Parameter not in scope"

Album.Delete(x => (ListOfIds).Contains(x.Id));

What am I missing here?

Please advise.

Thanks

Pankaj

+1  A: 

The Contains method isn't currently supported in SubSonic's linq implementation. I've posted an alternative method of doing this in response to your other question here

Adam