本文介绍了哪里ObjectDataSource控件缓存数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用一个ObjectDataSource作为我的页面控件和我的数据访问层和放大器之间的中间考虑;对象模型。传统上我已经手动创建对象,并通过一系列的FindControl语句来填充它,当我需要插入到数据库/更新数据。我希望我可以使用该ObjectDataSource封我的对象,我的控件之间的数据,消除了人工code,只要ObjectDataSource控件不来了很多开销。

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.

我注意到EnableCaching财产,哪里缓存occure?它是视图状态?

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

推荐答案

据缓存中的全局缓存: ObjectDataSource.EnableCaching

It caches in the Global Cache: ObjectDataSource.EnableCaching

这篇关于哪里ObjectDataSource控件缓存数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 13:48