New Posts New Posts RSS Feed: ASP.NET MVC3 & WCF
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

ASP.NET MVC3 & WCF

 Post Reply Post Reply
Author
alex.tiuca View Drop Down
Newbie
Newbie


Joined: 16-Feb-2012
Posts: 4
Post Options Post Options   Quote alex.tiuca Quote  Post ReplyReply Direct Link To This Post Topic: ASP.NET MVC3 & WCF
    Posted: 30-Apr-2012 at 7:54am
Hi,

I have a class library project which contains the EF schema (edmx file) and a WCF Service Project where i include the class library and where i expose methods which use entities from schema. In an MVC3 application i call the WCF service and it works (the service returns the queried dates) but it doesn't work DevForce cache because doesn't return anything from cache when i execute the queries for the second time. What kind of problem might be??? Thanks!
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 30-Apr-2012 at 3:31pm
Hi Alex,
 
Are you keeping the EntityManager for the session?
My guess is that you might be creating a new EntityManager with the new request.
 
Silvio.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down