Where does the ObjectDataSource cache data?

2019-08-01 07:53发布

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条回答
我欲成王,谁敢阻挡
2楼-- · 2019-08-01 08:27

It caches in the Global Cache: ObjectDataSource.EnableCaching

查看更多
登录 后发表回答