Where does the ObjectDataSource cache data?

时光总嘲笑我的痴心妄想 提交于 2019-12-11 07:29:59

问题


I'm considering using an ObjectDataSource as an intermediate between my page controls and my data access layer & object model. Traditionally I have manually created the object and populate it via a series of findcontrol statements when I need to insert/update data in the database. I'm hoping that I can use the ObjectDataSource to marshal data between my object and my controls, eliminating that manual code, as long as the ObjectDataSource doesn't come with a lot of overhead.

I noticed the EnableCaching property, where does the caching occure? is it in view state?


回答1:


It caches in the Global Cache: ObjectDataSource.EnableCaching



来源:https://stackoverflow.com/questions/2455930/where-does-the-objectdatasource-cache-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!