Entity Framework is there a way to see what is in cache?

Is there a way of looking at whats already in cache? I just want to ensure that I'm not making repeated database calls.

Answers


Yeah, sure is, you can use:

context.<YourSet>.Local

to see all entities currently tracked by the context


Need Your Help

Pass a NSDictionary as parameter to UITapGestureRecognizer

ios objective-c nsarray uitapgesturerecognizer

I want to pass a NSArray as a parameter to UITapGestureRecognizer and access it in downloadOptionPressed method. How can I do this ?

Can't update Knockout.js ViewModel after .ajax call

jquery ajax knockout.js

On initial page load, my data gets loaded fine. I have a delete function which calls my controller through .ajax and deletes the item in the database OK, and then sends back the new list of JSON i...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.