We are using Entity Framework 4 and are creating our context using the repository pattern and using Structuremap for DI.
private readonly BLEntities _context;
public ProductService(BLEntities context)
{
_context = context;
}
We have recently moved over to Azure and so at any one time we have two servers hosting the web site. Now if I get a product on one server, then go to the other server and update the product, then go back to the first server and reload the page I get the "old" results of the product. This is for testing so there is no caching being done on our side. Has this got to do with Entity Framework change tracking? If so, what should I do to alleviate this problem?
I am just running a simple select query to get the product.
var query = from p in _context.Products
where p.ProductId == 1
select p;
Thanks