PC Review


Reply
Thread Tools Rate Thread

Delete multiple records with Linq

 
 
Arjen
Guest
Posts: n/a
 
      9th Jul 2008
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!

 
Reply With Quote
 
 
 
 
Ciaran O''Donnell
Guest
Posts: n/a
 
      10th Jul 2008
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!
>
>

 
Reply With Quote
 
Chakravarthy
Guest
Posts: n/a
 
      10th Jul 2008
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" <(E-Mail Removed)> wrote in message
newsA8B2E43-156A-4B4A-A8AF-(E-Mail Removed)...
> 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!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to delete records from multiple tables OverMyHead Microsoft Access Queries 2 1st Jun 2009 03:03 AM
Delete Multiple records nintendomasta811@gmail.com Microsoft Access Getting Started 2 19th Jun 2007 09:37 PM
Delete query for multiple records =?Utf-8?B?SUMgRGF0YQ==?= Microsoft Access Queries 3 19th Mar 2007 06:39 PM
Delete multiple records =?Utf-8?B?UHJhbmVzaA==?= Microsoft Access 1 15th Aug 2005 09:25 PM
Delete multiple records from multiple tables in Access? nalgene Microsoft Access 2 15th Aug 2004 07:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:07 AM.