I
Ilyas
Hi all
I have created a new ado.net entity data model using VS2008 for the
northwind db. I added all tables in the northwind db
I then attempted to run the following code in NUnit (2.4.7):
NorthwindEntities nw = new NorthwindEntities();
var x= nw.Region.First();
This took 6 seconds, which I thought was a bit long.
Here is the sql that was executed:
SELECT TOP (1)
[c].[RegionID] AS [RegionID],
[c].[RegionDescription] AS [RegionDescription]
FROM [dbo].[Region] AS [c]
Now sql server takes a fraction of a second, to execute this simplt
sql, and interestingly enough when I use Sql Profiler, I notice that
the command doesnt actually come to sql server until the 6 seconds are
almost over. So my question is what is happening inside the EF that is
taking 6 seconds to send to command to sql server?
Any advice, pointers would be very appreciated
My machine is Vista SP1, 2GB ram, 2.2GHZ, also .net 3.5 sp1 is present.
I have created a new ado.net entity data model using VS2008 for the
northwind db. I added all tables in the northwind db
I then attempted to run the following code in NUnit (2.4.7):
NorthwindEntities nw = new NorthwindEntities();
var x= nw.Region.First();
This took 6 seconds, which I thought was a bit long.
Here is the sql that was executed:
SELECT TOP (1)
[c].[RegionID] AS [RegionID],
[c].[RegionDescription] AS [RegionDescription]
FROM [dbo].[Region] AS [c]
Now sql server takes a fraction of a second, to execute this simplt
sql, and interestingly enough when I use Sql Profiler, I notice that
the command doesnt actually come to sql server until the 6 seconds are
almost over. So my question is what is happening inside the EF that is
taking 6 seconds to send to command to sql server?
Any advice, pointers would be very appreciated
My machine is Vista SP1, 2GB ram, 2.2GHZ, also .net 3.5 sp1 is present.