Print Page | Close Window

ASP.NET MVC3 & WCF

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=3416
Printed Date: 13-May-2026 at 8:27am


Topic: ASP.NET MVC3 & WCF
Posted By: alex.tiuca
Subject: ASP.NET MVC3 & WCF
Date 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!



Replies:
Posted By: sbelini
Date 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.



Print Page | Close Window