471,326 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,326 software developers and data experts.

Delete multiple records with Linq

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
2 7976
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
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.

Similar topics

reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.