473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 8107
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: axas | last post by:
How can I delete multiple records from a DataGrid? Thanks.
3
by: Jeff | last post by:
In a subform I have a simple SQL statement that links an order details table to a product table. The form is used to enter order details. Most fields are obviously from the details table, with only...
1
by: saurabhbpl | last post by:
hi, i want to delete record that check by checkbox and also if i select all option than all record select delete after press the delete button like a yahoo email and hotmail.plz. give me suggestion,...
3
madhoriya22
by: madhoriya22 | last post by:
I have solved the problem
4
by: abdul razak | last post by:
delete multiple records by checking checkboxes records from database use javascript
11
by: Ganesh R | last post by:
Hi Friends... Can anyone plz help me out i'm stuck .... I want to delete multiple records from a data grid using cursors.the parameter for the stored procedure is an comma seperated string(of...
7
by: mukeshrasm | last post by:
hello everyone I want to delete the selected records from database using checkbox. whch is generated dyanamically and checkbox is also generated dynamically,using php. so please help me. if you...
1
by: busterbaxter | last post by:
Hi All, I have an existing inventory database that I'm trying to make changes to. The database only has 1 table with the following fields: PartNumber ItemDescription Category Location Owner...
15
by: busterbaxter | last post by:
I have an existing inventory database that I'm trying to make changes to. The database only has 1 table with the following fields: PartNumber ItemDescription Category Location Owner...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.