EntityDataSource.StoreOriginalValuesInViewState Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether the data from the data source should be stored in view state to make sure that the data has not been changed by another process before it is updated or deleted.
public:
property bool StoreOriginalValuesInViewState { bool get(); void set(bool value); };
public bool StoreOriginalValuesInViewState { get; set; }
member this.StoreOriginalValuesInViewState : bool with get, set
Public Property StoreOriginalValuesInViewState As Boolean
Property Value
true
if the values will be stored in view state; otherwise, false
. The default value is true
.
Remarks
To track changes when update and delete operations are enabled, the EntityDataSource control must store information about original values of loaded objects in the ControlState. Storing this required information in the view state will increase the page size. You can disable storing original values in the view state by setting the StoreOriginalValuesInViewState property to false
. If you do this, the Entity Framework cannot track concurrency in updated objects. For more information, see Updating Data (EntityDataSource).
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기