QueryableDataSourceView Class

Supports the QueryableDataSource control and provides an interface for data-bound controls to perform LINQ data operations.

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

public abstract class QueryableDataSourceView : DataSourceView, 
	IStateManager

The QueryableDataSourceView type exposes the following members.

  NameDescription
Protected methodQueryableDataSourceViewInitializes a new instance of the QueryableDataSourceView class.
Top

  NameDescription
Public propertyAutoGenerateOrderByClauseGets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control creates a dynamic an OrderBy clause.
Public propertyAutoGenerateWhereClauseGets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control creates a dynamic Where clause.
Public propertyAutoPageGets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging by default.
Public propertyAutoSortGets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports sorting by default.
Public propertyCanDeleteGets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports delete operations. (Overrides DataSourceView.CanDelete.)
Public propertyCanInsertGets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports insert operations. (Overrides DataSourceView.CanInsert.)
Public propertyCanPageGets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging. (Overrides DataSourceView.CanPage.)
Public propertyCanRetrieveTotalRowCountGets 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. (Overrides DataSourceView.CanRetrieveTotalRowCount.)
Public propertyCanSortGets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports a sorted view of the retrieved data. (Overrides DataSourceView.CanSort.)
Public propertyCanUpdateGets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports update operations. (Overrides DataSourceView.CanUpdate.)
Public propertyDeleteParametersGets the collection that contains the parameters that are used during a delete operation.
Protected propertyEntityTypeGets the type of the data object to use for CUD operations.
Protected propertyEventsGets a list of event-handler delegates for the data source view. (Inherited from DataSourceView.)
Public propertyGroupByGets or sets the name or names of the properties to use during the select operation for grouping data.
Public propertyGroupByParametersGets a collection of parameters whose values are used to create the GroupBy clause during the select operation.
Public propertyInsertParametersGets a collection of parameters that are used during the insert operation.
Protected propertyIsTrackingViewStateGets a value that indicates whether the QueryableDataSourceView object is saving changes to its view state.
Public propertyNameGets the name of the data source view. (Inherited from DataSourceView.)
Public propertyOrderByGets or sets the name or names of the properties that are used during the select operation to sort data.
Public propertyOrderByParametersGets a collection of parameters that are used during the select operation to sort data.
Public propertyOrderGroupsByGets or sets the names of the properties that are used during the select operation to sort grouped data.
Public propertyOrderGroupsByParametersGets a collection of parameters that are used to create the OrderGroupsBy clause.
Public propertySelectNewGets or sets the properties and calculated values that are included in the retrieved data.
Public propertySelectNewParametersGets the collection of parameters that are used during a data-retrieval operation.
Public propertyUpdateParametersGets the collection of parameters that are used during an update operation.
Public propertyWhereGets or sets a value that specifies what conditions must be true for a row to be included in the retrieved data.
Public propertyWhereParametersGets a collection of parameters that are used to create a Where clause.
Top

  NameDescription
Protected methodBuildDeleteObjectCreates the objects to use for the delete operation.
Protected methodBuildInsertObjectCreates the objects to use for the insert operation by using the values to insert and the error message to display if the operation fails.
Protected methodBuildQueryCreates a Select query expression by using the select arguments of the data source.
Protected methodBuildUpdateObjectsCreates the objects to use for the update operation by using the specified values.
Public methodCanExecuteDetermines whether the specified command can be executed. (Inherited from DataSourceView.)
Protected methodClearOriginalValuesClears the original values.
Protected methodCreateQueryContextCreates an instance of a query context object that contains the evaluated parameter collections.
Public methodDelete(IDictionary, IDictionary)Performs a delete operation.
Public methodDelete(IDictionary, IDictionary, DataSourceViewOperationCallback)Performs an asynchronous delete operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected methodDeleteObjectDeletes a data object from a table.
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 on data items that the QueryableDataSourceView object represents by using the specified values. (Overrides DataSourceView.ExecuteDelete(IDictionary, IDictionary).)
Protected methodExecuteInsertPerforms an insert operation on the data items that the QueryableDataSourceView object represents by using the specified value. (Overrides DataSourceView.ExecuteInsert(IDictionary).)
Protected methodExecutePagingExecutes paging by using the QueryContext object from the QueryableDataSource object.
Protected methodExecuteQueryPerforms a query, sort, or paging operation on the IQueryable<T> object.
Protected methodExecuteQueryExpressionsExecutes query expressions by using an IQueryable object and the QueryContext object.
Protected methodExecuteSelectPerforms a data-retrieval operation. (Overrides DataSourceView.ExecuteSelect(DataSourceSelectArguments).)
Protected methodExecuteSortingPerforms a sorting operation.
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.)
Protected methodGetOriginalValuesRetrieves the original values for the specified keys that were stored during the Select operation.
Protected methodGetSourceGets initial IQueryable object for the data source view based on the query context.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodHandleValidationErrorsCalled by methods that perform CRUD operations when a CRUD operation fails in the data-object building process.
Public methodInsert(IDictionary)Performs an asynchronous insert operation on the data items that the QueryableDataSourceView object represents.
Public methodInsert(IDictionary, DataSourceViewOperationCallback)Performs an asynchronous insert operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected methodInsertObjectInserts data objects into a QueryableDataSourceView object.
Protected methodLoadViewStateRestores the previously saved view state for the data source view.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnDataSourceViewChangedRaises the DataSourceViewChanged event. (Inherited from DataSourceView.)
Protected methodOnQueryCreatedRaises the QueryCreated event after the QueryableDataSource control has created an IQueryable object.
Protected methodOnQueryParametersChangedCalls the RaiseViewChanged method.
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 methodRaiseViewChangedCalls the OnDataSourceViewChanged method.
Protected methodSaveViewStateSaves changes to view state for the QueryableDataSourceView object since the time that the page was posted to the server.
Public methodSelectGets a list of data asynchronously from the underlying data storage. (Inherited from DataSourceView.)
Protected methodStoreOriginalValues(IList)Stores the original values from the Select operation in the control's view state.
Protected methodStoreOriginalValues(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.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Protected methodTrackViewStateCauses tracking of view-state changes to the server control so that they can be stored in the server control's state.
Public methodUpdate(IDictionary, IDictionary, IDictionary)Performs an update operation.
Public methodUpdate(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback)Performs an asynchronous update operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected methodUpdateObjectUpdates a data object.
Top

  NameDescription
Public eventDataSourceViewChangedOccurs when the data source view has changed. (Inherited from DataSourceView.)
Public eventQueryCreatedOccurs when a query is created.
Top

  NameDescription
Protected fieldStatic memberEventSelectedSpecifies whether the event that causes the data-retrieval operation to complete has occurred.
Protected fieldStatic memberEventSelectingSpecifies whether the event that occurs before a data-retrieval operation has occurred.
Top

  NameDescription
Explicit interface implemetationPrivate propertyIStateManager.IsTrackingViewStateWhen implemented by a class, gets a value that indicates whether a server control is tracking its view-state changes.
Explicit interface implemetationPrivate methodIStateManager.LoadViewStateWhen implemented by a class, loads the server control's previously saved view state for the control.
Explicit interface implemetationPrivate methodIStateManager.SaveViewStateWhen implemented by a class, saves the changes to a server control's view state to an object.
Explicit interface implemetationPrivate methodIStateManager.TrackViewStateWhen implemented by a class, gets a value that indicates whether a server control is tracking its view-state changes.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft