EntityDataSourceView Class (System.Web.UI.WebControls)

Switch View :
ScriptFree
.NET Framework Class Library
EntityDataSourceView Class

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

Inheritance Hierarchy

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)
Syntax

Visual Basic
Public NotInheritable Class EntityDataSourceView _
	Inherits DataSourceView _
	Implements IStateManager
C#
public sealed class EntityDataSourceView : DataSourceView, 
	IStateManager
Visual C++
public ref class EntityDataSourceView sealed : public DataSourceView, 
	IStateManager
F#
[<Sealed>]
type EntityDataSourceView =  
    class
        inherit DataSourceView
        interface IStateManager
    end

The EntityDataSourceView type exposes the following members.

Properties

  Name Description
Public property CanDelete Gets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports the delete operation. (Overrides DataSourceView.CanDelete.)
Public property CanInsert Gets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports the insert operation. (Overrides DataSourceView.CanInsert.)
Public property CanPage Gets 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 property CanRetrieveTotalRowCount Gets 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 property CanSort Gets 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 property CanUpdate Gets a value that indicates whether the EntityDataSourceView object that is associated with the current EntityDataSource control supports the update operation. (Overrides DataSourceView.CanUpdate.)
Protected property Events Gets a list of event-handler delegates for the data source view. (Inherited from DataSourceView.)
Public property Name Gets the name of the data source view. (Inherited from DataSourceView.)
Top
Methods

  Name Description
Public method CanExecute Determines whether the specified command can be executed. (Inherited from DataSourceView.)
Public method Delete Performs an asynchronous delete operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method ExecuteCommand(String, IDictionary, IDictionary) Executes the specified command. (Inherited from DataSourceView.)
Public method ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback) Executes the specified command. (Inherited from DataSourceView.)
Protected method ExecuteDelete Performs a delete operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected method ExecuteInsert Performs an insert operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected method ExecuteSelect Gets a list of data from the underlying data storage. (Inherited from DataSourceView.)
Protected method ExecuteUpdate Performs an update operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetViewSchema Returns a table that represents the EntityDataSourceView.
Public method Insert Performs an asynchronous insert operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnDataSourceViewChanged Raises the DataSourceViewChanged event. (Inherited from DataSourceView.)
Protected method RaiseUnsupportedCapabilityError Called by the RaiseUnsupportedCapabilitiesError method to compare the capabilities requested for an ExecuteSelect operation against those that the view supports. (Inherited from DataSourceView.)
Public method Select Gets a list of data asynchronously from the underlying data storage. (Inherited from DataSourceView.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Update Performs an asynchronous update operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Top
Events

  Name Description
Public event ContextCreated Occurs when the EntityDataSourceView has finished creating the ObjectContext used to bind data to controls.
Public event ContextCreating Occurs when the EntityDataSourceView creates the ObjectContext used in data binding.
Public event ContextDisposing Occurs before an ObjectContext is disposed.
Public event DataSourceViewChanged Occurs when the data source view has changed. (Inherited from DataSourceView.)
Public event Deleted Occurs after an object has been deleted from the data source.
Public event Deleting Occurs before an object is deleted from the data source.
Public event Exception Occurs when validation fails in a partial methods or when an exception is raised.
Public event Inserted Occurs after a new object is created at the data source.
Public event Inserting Occurs before a new object is persisted to the data source.
Public event QueryCreated Occurs after the EntityDataSource() has created an Entity SQL query that was specified during the configuration of the EntityDataSource control.
Public event Selected Occurs after a query has been executed.
Public event Selecting Occurs before a query is constructed and executed.
Public event Updated Occurs after changes to an object have been persisted to the data source.
Public event Updating Occurs before changes to an object are persisted to the data source.
Top
Explicit Interface Implementations

  Name Description
Explicit interface implemetation Private property IStateManager.IsTrackingViewState Gets a value that indicates whether the EntityDataSourceView object is saving changes to its view state.
Explicit interface implemetation Private method IStateManager.LoadViewState Restores the previously saved view state for the data source view.
Explicit interface implemetation Private method IStateManager.SaveViewState Saves the changes to view state for the EntityDataSourceView control since the time that the page was posted back to the server.
Explicit interface implemetation Private method IStateManager.TrackViewState Tracks view state changes.
Top
Version Information

.NET Framework

Supported in: 4, 3.5 SP1
Platforms

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference