Quantcast
Channel: User David Silva-Barrera - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Answer by David Silva-Barrera for EF6 - Is there a way to clear EF cache / Local items without causing any change into the database?

$
0
0

I have been using SqlQuery from dbset for this purpose, this way:

context.xdbset.SqlQuery("storedprocedure; select * from xdbset");  

The query calls the stored procedure and then calls select *... which necessary here because the query result have to contain the data format expected for the context to build "xdbset" objects.

You can look here for a similar debate.


Viewing all articles
Browse latest Browse all 37

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>