By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,855 Members | 865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,855 IT Pros & Developers. It's quick & easy.

Delete multiple records with Linq

P: n/a
Hi,

How can I delete multiple records with Linq?

On the internet I found the DeleteAll function, but this one does not exist
in my library.

Please help me out.

Thanks!

Jul 9 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Scott Guthrie has this on his blog post introducing linq to sql. Its about
half way down although the whole post is a good talk through the updating the
database part of linq.
Have a look here:
http://weblogs.asp.net/scottgu/archi...-database.aspx
--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Arjen" wrote:
Hi,

How can I delete multiple records with Linq?

On the internet I found the DeleteAll function, but this one does not exist
in my library.

Please help me out.

Thanks!

Jul 10 '08 #2

P: n/a
Dude,

First things first. as the abbreviation of LINQ is Language INtegrated
QUERY. which is majorly targeted for QUERYing, but not for all the CRUD
operations.

secondly, as mentioned in SCOTT's blog, you have to narrow done to that
SINGLE record using expression, then use the DELETEALL ..

HTH

"Arjen" <bo*****@hotmail.comwrote in message
news:DA**********************************@microsof t.com...
Hi,

How can I delete multiple records with Linq?

On the internet I found the DeleteAll function, but this one does not
exist in my library.

Please help me out.

Thanks!
Jul 10 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.