ContextDataSourceView Class
.NET Framework 4.5
Supports the ContextDataSource control and provides an interface for data-bound controls to perform data operations.
System.Object
System.Web.UI.DataSourceView
System.Web.UI.WebControls.QueryableDataSourceView
System.Web.UI.WebControls.ContextDataSourceView
System.Web.UI.WebControls.LinqDataSourceView
System.Web.UI.DataSourceView
System.Web.UI.WebControls.QueryableDataSourceView
System.Web.UI.WebControls.ContextDataSourceView
System.Web.UI.WebControls.LinqDataSourceView
Namespace: System.Web.UI.WebControls
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The ContextDataSourceView type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ContextDataSourceView | Initializes a new instance of the ContextDataSourceView class. |
| Name | Description | |
|---|---|---|
![]() | AutoGenerateOrderByClause | Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control creates a dynamic an OrderBy clause. (Inherited from QueryableDataSourceView.) |
![]() | AutoGenerateWhereClause | Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control creates a dynamic Where clause. (Inherited from QueryableDataSourceView.) |
![]() | AutoPage | Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging by default. (Inherited from QueryableDataSourceView.) |
![]() | AutoSort | Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports sorting by default. (Inherited from QueryableDataSourceView.) |
![]() | CanDelete | Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports delete operations. (Inherited from QueryableDataSourceView.) |
![]() | CanInsert | Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports insert operations. (Inherited from QueryableDataSourceView.) |
![]() | CanPage | Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging. (Inherited from QueryableDataSourceView.) |
![]() | CanRetrieveTotalRowCount | Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports retrieving the total number of data rows, and retrieving the data. (Inherited from QueryableDataSourceView.) |
![]() | CanSort | Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports a sorted view of the retrieved data. (Inherited from QueryableDataSourceView.) |
![]() | CanUpdate | Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports update operations. (Inherited from QueryableDataSourceView.) |
![]() | Context | Gets or sets the current data context. |
![]() | ContextType | Gets the type of the data context. |
![]() | ContextTypeName | Gets or sets the name of the data context class that contains the field or property that is specified in the TableName property. |
![]() | DeleteParameters | Gets the collection that contains the parameters that are used during a delete operation. (Inherited from QueryableDataSourceView.) |
![]() | EntitySet | Gets or sets the object that contains the value of the data to retrieve. |
![]() | EntitySetName | Gets or sets the name of the property or field in the data-context class that represents a data collection. |
![]() | EntitySetType | Gets or sets the name of the object that is created for an insert, delete, or update operation. |
![]() | EntityType | Gets or sets the object that is created for an insert, delete, or update operation. (Overrides QueryableDataSourceView.EntityType.) |
![]() | EntityTypeName | Gets or sets the name of the object that is created for an insert, delete, or update operation. |
![]() | Events | Gets a list of event-handler delegates for the data source view. (Inherited from DataSourceView.) |
![]() | GroupBy | Gets or sets the name or names of the properties to use during the select operation for grouping data. (Inherited from QueryableDataSourceView.) |
![]() | GroupByParameters | Gets a collection of parameters whose values are used to create the GroupBy clause during the select operation. (Inherited from QueryableDataSourceView.) |
![]() | InsertParameters | Gets a collection of parameters that are used during the insert operation. (Inherited from QueryableDataSourceView.) |
![]() | IsTrackingViewState | Gets a value that indicates whether the QueryableDataSourceView object is saving changes to its view state. (Inherited from QueryableDataSourceView.) |
![]() | Name | Gets the name of the data source view. (Inherited from DataSourceView.) |
![]() | OrderBy | Gets or sets the name or names of the properties that are used during the select operation to sort data. (Inherited from QueryableDataSourceView.) |
![]() | OrderByParameters | Gets a collection of parameters that are used during the select operation to sort data. (Inherited from QueryableDataSourceView.) |
![]() | OrderGroupsBy | Gets or sets the names of the properties that are used during the select operation to sort grouped data. (Inherited from QueryableDataSourceView.) |
![]() | OrderGroupsByParameters | Gets a collection of parameters that are used to create the OrderGroupsBy clause. (Inherited from QueryableDataSourceView.) |
![]() | SelectNew | Gets or sets the properties and calculated values that are included in the retrieved data. (Inherited from QueryableDataSourceView.) |
![]() | SelectNewParameters | Gets the collection of parameters that are used during a data-retrieval operation. (Inherited from QueryableDataSourceView.) |
![]() | UpdateParameters | Gets the collection of parameters that are used during an update operation. (Inherited from QueryableDataSourceView.) |
![]() | Where | Gets or sets a value that specifies what conditions must be true for a row to be included in the retrieved data. (Inherited from QueryableDataSourceView.) |
![]() | WhereParameters | Gets a collection of parameters that are used to create a Where clause. (Inherited from QueryableDataSourceView.) |
| Name | Description | |
|---|---|---|
![]() | BuildDeleteObject | Creates the objects to use for the delete operation. (Inherited from QueryableDataSourceView.) |
![]() | BuildInsertObject | Creates the objects to use for the insert operation by using the values to insert and the error message to display if the operation fails. (Inherited from QueryableDataSourceView.) |
![]() | BuildQuery | Creates a Select query expression by using the select arguments of the data source. (Inherited from QueryableDataSourceView.) |
![]() | BuildUpdateObjects | Creates the objects to use for the update operation by using the specified values. (Inherited from QueryableDataSourceView.) |
![]() | CanExecute | Determines whether the specified command can be executed. (Inherited from DataSourceView.) |
![]() | ClearOriginalValues | Clears the original values. (Inherited from QueryableDataSourceView.) |
![]() | CreateContext | Creates an instance of the data context and entity-set type for the specified operation. |
![]() | CreateQueryContext | Creates an instance of a query context object that contains the evaluated parameter collections. (Inherited from QueryableDataSourceView.) |
![]() | Delete(IDictionary, IDictionary) | Performs a delete operation. (Inherited from QueryableDataSourceView.) |
![]() | Delete(IDictionary, IDictionary, DataSourceViewOperationCallback) | Performs an asynchronous delete operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.) |
![]() | DeleteObject | Deletes a data object from a table. (Inherited from QueryableDataSourceView.) |
![]() | DisposeContext() | Disposes the context after an operation is performed. |
![]() | DisposeContext(Object) | Disposes the specified data context after an operation is performed. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | ExecuteCommand(String, IDictionary, IDictionary) | Executes the specified command. (Inherited from DataSourceView.) |
![]() | ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback) | Executes the specified command. (Inherited from DataSourceView.) |
![]() | ExecuteDelete | Performs a delete operation using the specified keys and using row values that are used to detect conflicts. (Overrides QueryableDataSourceView.ExecuteDelete(IDictionary, IDictionary).) |
![]() | ExecuteInsert | Performs an insert operation by using the values specified in a collection. (Overrides QueryableDataSourceView.ExecuteInsert(IDictionary).) |
![]() | ExecutePaging | Executes paging by using the QueryContext object from the QueryableDataSource object. (Inherited from QueryableDataSourceView.) |
![]() | ExecuteQuery | Performs a query, sort, or paging operation on the IQueryable<T> object. (Inherited from QueryableDataSourceView.) |
![]() | ExecuteQueryExpressions | Executes query expressions by using an IQueryable object and the QueryContext object. (Inherited from QueryableDataSourceView.) |
![]() | ExecuteSelect | Performs a data-retrieval operation. (Inherited from QueryableDataSourceView.) |
![]() | ExecuteSorting | Performs a sorting operation. (Inherited from QueryableDataSourceView.) |
![]() | ExecuteUpdate | Performs an update operation by using the specified row-key values, the row values, and the row values that are used to detect conflicts. (Overrides QueryableDataSourceView.ExecuteUpdate(IDictionary, IDictionary, IDictionary).) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetDataObjectType | Retrieves the type of data object to use for the delete, insert, and update operations. |
![]() | GetEntitySetType | Retrieves the entity set as a property, field, or data context. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetOriginalValues | Retrieves the original values for the specified keys that were stored during the Select operation. (Inherited from QueryableDataSourceView.) |
![]() | GetSource | Retrieves the source of the query context. (Overrides QueryableDataSourceView.GetSource(QueryContext).) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | HandleValidationErrors | Called by methods that perform CRUD operations when a CRUD operation fails in the data-object building process. (Inherited from QueryableDataSourceView.) |
![]() | Insert(IDictionary) | Performs an asynchronous insert operation on the data items that the QueryableDataSourceView object represents. (Inherited from QueryableDataSourceView.) |
![]() | Insert(IDictionary, DataSourceViewOperationCallback) | Performs an asynchronous insert operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.) |
![]() | InsertObject | Inserts data objects into a QueryableDataSourceView object. (Inherited from QueryableDataSourceView.) |
![]() | LoadViewState | Restores the previously saved view state for the data source view. (Inherited from QueryableDataSourceView.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnDataSourceViewChanged | Raises the DataSourceViewChanged event. (Inherited from DataSourceView.) |
![]() | OnQueryCreated | Raises the QueryCreated event after the QueryableDataSource control has created an IQueryable object. (Inherited from QueryableDataSourceView.) |
![]() | OnQueryParametersChanged | Calls the RaiseViewChanged method. (Inherited from QueryableDataSourceView.) |
![]() | RaiseUnsupportedCapabilityError | Called by the RaiseUnsupportedCapabilitiesError method to compare the capabilities requested for an ExecuteSelect operation against those that the view supports. (Inherited from DataSourceView.) |
![]() | RaiseViewChanged | Calls the OnDataSourceViewChanged method. (Inherited from QueryableDataSourceView.) |
![]() | SaveViewState | Saves changes to view state for the QueryableDataSourceView object since the time that the page was posted to the server. (Inherited from QueryableDataSourceView.) |
![]() | Select | Gets a list of data asynchronously from the underlying data storage. (Inherited from DataSourceView.) |
![]() | StoreOriginalValues(IList) | Stores the original values from the Select operation in the control's view state. (Inherited from QueryableDataSourceView.) |
![]() | StoreOriginalValues(IList, Func<PropertyDescriptor, Boolean>) | Stores the original values from the select operation in the control's view state when delete or update operations are enabled. (Inherited from QueryableDataSourceView.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TrackViewState | Causes tracking of view-state changes to the server control so that they can be stored in the server control's state. (Inherited from QueryableDataSourceView.) |
![]() | Update(IDictionary, IDictionary, IDictionary) | Performs an update operation. (Inherited from QueryableDataSourceView.) |
![]() | Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback) | Performs an asynchronous update operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.) |
![]() | UpdateObject | Updates a data object. (Inherited from QueryableDataSourceView.) |
| Name | Description | |
|---|---|---|
![]() | DataSourceViewChanged | Occurs when the data source view has changed. (Inherited from DataSourceView.) |
![]() | QueryCreated | Occurs when a query is created. (Inherited from QueryableDataSourceView.) |
| Name | Description | |
|---|---|---|
![]() ![]() | EventContextCreated | Indicates that an event occurred after an instance of the context type object was created. |
![]() ![]() | EventContextCreating | Indicates that an event occurs before an instance of the context type object is created. |
![]() ![]() | EventContextDisposing | Indicates that an event occurs before an instance of the context type object is disposed. |
| Name | Description | |
|---|---|---|
![]() ![]() | IStateManager.IsTrackingViewState | When implemented by a class, gets a value that indicates whether a server control is tracking its view-state changes. (Inherited from QueryableDataSourceView.) |
![]() ![]() | IStateManager.LoadViewState | When implemented by a class, loads the server control's previously saved view state for the control. (Inherited from QueryableDataSourceView.) |
![]() ![]() | IStateManager.SaveViewState | When implemented by a class, saves the changes to a server control's view state to an object. (Inherited from QueryableDataSourceView.) |
![]() ![]() | IStateManager.TrackViewState | When implemented by a class, gets a value that indicates whether a server control is tracking its view-state changes. (Inherited from QueryableDataSourceView.) |
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.

