New Posts New Posts RSS Feed: QueryStrategy Question
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

QueryStrategy Question

 Post Reply Post Reply
Author
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Topic: QueryStrategy Question
    Posted: 05-Jan-2014 at 1:58pm
Is there any way to tell where the entity manager satisfied the data request from. i want to run a statement after a query and know which of the strategies it used.

Bill

Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Posted: 07-Jan-2014 at 3:46pm
Hi Bill,

Yes there is. You can listen to the EntityManager.Queried event and detect what the ResolvedFetchStrategy is.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down