开发者

EntityFramework lazy load from external source

开发者 https://www.devze.com 2023-04-05 09:17 出处:网络
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

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消