Linq To EF - Too Good?

I don't like to look a gift-horse in the mouth, but...Customers-Invoices, tables+EF objects. I make a request for list Invoices, watching SQL Profiler like hawk, get the list, QuickWatch on one Invoice, see the related Customer object, pop the + sign, and I get the Customer full object, but I don't see any action in the profiler????
Where is it getting the data from?
(I'm no expert on SQL Profiler, I'm using the freebie one AnjLab with two Events selected only, SQLBatchStart + SQLBatchComplete )
Silas2Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Carl TawnConnect With a Mentor Systems and Integration DeveloperCommented:
The commands won't be run as a batch. You need to be watching for statement based events, although i'm not sure precisely what they will be named in the AnjLab version.
0
 
John ClaesConnect With a Mentor Senior .Net Consultant & Technical AnalistCommented:
Entity framework gets his data Through the folowing application Name : .Net SCLCLient Data Provider
RPC:Completed gives you the query that has ran

I'm using the standard template in the Profiler.
0
 
Fernando SotoRetiredCommented:
It depends on how the query was set up to include or not to include child entities. Can you post the code you used including the instantiation of the ObjectContext.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.