On Fri, Mar 18, 2011 at 12:55 AM, [email protected]
<[email protected]> wrote:
> Hi
>
> I am about to make some decision about the LINQ, a question arises
> "Is LINQ hits 500 times to database for 500 objects for insertion or
> in a single shot". Please advice if any one knows.
---------------------
You should set up the SQL Profile to see just what is sent in an linq
connection and request.
Quick answer is NO. One connection and one script. That script could
be very large if you are dong many edits as well as inserts and
deletes with the same .
code below has and Entity EL
int retnum = EL.SaveChanges();
return retnum> 0 ? "cool" : "no records saved" ;
--
Stephen Russell
Sr. Production Systems Programmer
CIMSgts
901.246-0159 cell
--
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net