Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 9th, 2009, 02:32 AM
Registered User
Points: 38, Level: 1
Points: 38, Level: 1 Points: 38, Level: 1 Points: 38, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2008
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Post Multiple Row Insert using Linq

Dear Friends,

How to insert Multiple Rows using Linq in a single Link query.

Normally ,i used to Build all the row as a single xml tag and move it to Database and there i will manipulate and insert all the rows simultaneously.

But in case of LINQ how to achieve this.

Regards
Arivarasu
 
Old January 9th, 2009, 11:21 AM
Lee Dumond's Avatar
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Use the InsertAllOnSubmit method.

There is an example here:

http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=3813508&SiteID=1
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}




Similar Threads
Thread Thread Starter Forum Replies Last Post
insert row into table stealthdevil Access VBA 11 June 16th, 2007 08:32 AM
Insert multiple row in server. Somesh .NET Framework 2.0 1 June 1st, 2007 08:03 AM
insert new row in datagrid sumith ASP.NET 1.0 and 1.1 Professional 1 February 15th, 2007 01:53 PM
Insert Row in Database monika.vasvani ASP.NET 1.0 and 1.1 Professional 1 November 18th, 2006 05:17 AM
Dynamically Insert Row fs22 Javascript How-To 1 July 9th, 2005 04:47 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.