Export (0) Print
Expand All

EntityDataSourceView Class

Supports the EntityDataSource control and provides an interface for data-bound controls to perform queries and other operations against entity data.

System::Object
  System.Web.UI::DataSourceView
    System.Web.UI.WebControls::EntityDataSourceView

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Entity (in System.Web.Entity.dll)

public ref class EntityDataSourceView : public DataSourceView, 
	IStateManager

The EntityDataSourceView type exposes the following members.

  NameDescription
Public methodEntityDataSourceViewInitializes a new instance of the EntityDataSourceView class, setting the specified EntityDataSource control as the owner of the current view.
Top

  NameDescription
Public propertyCanDeleteGets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports the delete operation. (Overrides DataSourceView::CanDelete.)
Public propertyCanInsertGets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports the insert operation. (Overrides DataSourceView::CanInsert.)
Public propertyCanPageGets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports paging of retrieved data. (Overrides DataSourceView::CanPage.)
Public propertyCanRetrieveTotalRowCountGets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports retrieving the total number of data rows, in addition to retrieving the data. (Overrides DataSourceView::CanRetrieveTotalRowCount.)
Public propertyCanSortGets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports a sorted view of the retrieved data. (Overrides DataSourceView::CanSort.)
Public propertyCanUpdateGets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports the update operation. (Overrides DataSourceView::CanUpdate.)
Protected propertyEventsGets a list of event-handler delegates for the data source view. (Inherited from DataSourceView.)
Public propertyNameGets the name of the data source view. (Inherited from DataSourceView.)
Top

  NameDescription
Public methodCanExecuteDetermines whether the specified command can be executed. (Inherited from DataSourceView.)
Public methodDeletePerforms an asynchronous delete operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodExecuteCommand(String, IDictionary, IDictionary)Executes the specified command. (Inherited from DataSourceView.)
Public methodExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)Executes the specified command. (Inherited from DataSourceView.)
Protected methodExecuteDeletePerforms a delete operation. (Overrides DataSourceView::ExecuteDelete(IDictionary, IDictionary).)
Protected methodExecuteInsertPerforms an insert operation. (Overrides DataSourceView::ExecuteInsert(IDictionary).)
Protected methodExecuteSelectPerforms a select operation. (Overrides DataSourceView::ExecuteSelect(DataSourceSelectArguments).)
Protected methodExecuteUpdatePerforms an update operation. (Overrides DataSourceView::ExecuteUpdate(IDictionary, IDictionary, IDictionary).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetViewSchemaReturns a table that represents the EntityDataSourceView.
Public methodInsertPerforms an asynchronous insert operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnDataSourceViewChangedRaises the DataSourceViewChanged event. (Inherited from DataSourceView.)
Protected methodRaiseUnsupportedCapabilityErrorCalled by the RaiseUnsupportedCapabilitiesError method to compare the capabilities requested for an ExecuteSelect operation against those that the view supports. (Inherited from DataSourceView.)
Public methodSelectGets a list of data asynchronously from the underlying data storage. (Inherited from DataSourceView.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodUpdatePerforms an asynchronous update operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Top

  NameDescription
Public eventContextCreatedOccurs when the EntityDataSourceView has finished creating the ObjectContext used to bind data to controls.
Public eventContextCreatingOccurs when the EntityDataSourceView creates the ObjectContext used in data binding.
Public eventContextDisposingOccurs before an ObjectContext is disposed.
Public eventDataSourceViewChangedOccurs when the data source view has changed. (Inherited from DataSourceView.)
Public eventDeletedOccurs after an object has been deleted from the data source.
Public eventDeletingOccurs before an object is deleted from the data source.
Public eventExceptionOccurs when validation fails in a partial methods or when an exception is raised.
Public eventInsertedOccurs after a new object is created at the data source.
Public eventInsertingOccurs before a new object is persisted to the data source.
Public eventQueryCreatedOccurs after the EntityDataSource has created an Entity SQL query that was specified during the configuration of the EntityDataSource control.
Public eventSelectedOccurs after a query has been executed.
Public eventSelectingOccurs before a query is constructed and executed.
Public eventUpdatedOccurs after changes to an object have been persisted to the data source.
Public eventUpdatingOccurs before changes to an object are persisted to the data source.
Top

  NameDescription
Explicit interface implemetationPrivate propertyIStateManager::IsTrackingViewStateGets a value that indicates whether the EntityDataSourceView object is saving changes to its view state.
Explicit interface implemetationPrivate methodIStateManager::LoadViewStateRestores the previously saved view state for the data source view.
Explicit interface implemetationPrivate methodIStateManager::SaveViewStateSaves the changes to view state for the EntityDataSourceView control since the time that the page was posted back to the server.
Explicit interface implemetationPrivate methodIStateManager::TrackViewStateTracks view state changes.
Top

.NET Framework

Supported in: 4.5, 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft