The SQLDataSource has some property for caching, but the EntityDataSource hasen't any property for caching , how can I cache data that retrieve from EntityDataSource ?
The SQLDataSource has some property for caching, but the EntityDataSource hasen't any property for caching , how can I cache data that retrieve from EntityDataSource ?
The solution is to clone Entities whenever we read from the Cache, this way attaching clones won't affect any other threads.
maxpayn2
Member
10 Points
9 Posts
entitydatasource caching
Dec 18, 2011 12:41 PM|LINK
Hi
The SQLDataSource has some property for caching, but the EntityDataSource hasen't any property for caching , how can I cache data that retrieve from EntityDataSource ?
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: entitydatasource caching
Dec 20, 2011 12:41 AM|LINK
The solution is to clone Entities whenever we read from the Cache, this way attaching clones won't affect any other threads.
For more info you can read this aticle of How to make EF catchable。
maxpayn2
Member
10 Points
9 Posts
Re: entitydatasource caching
Dec 20, 2011 04:54 AM|LINK
Hi
Thanx for your attention
The link "How to make EF catchable" doesn't exist
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: entitydatasource caching
Dec 20, 2011 04:55 AM|LINK
Sorry,It should be http://blogs.msdn.com/b/alexj/archive/2009/04/22/tip-14-caching-entity-framework-reference-data.aspx