EntityFramework lazy load from external source
I have a SQL 2008 R2 database, which I access using En开发者_运维百科tity Framework. One table has a property which has to be populated from an external source. The fetched value should then be cached in the table.
How can I inject code into the entity context, that will allow me to fetch this data only when needed, and a cached value does not exist?
精彩评论