This topic has not yet been rated - Rate this topic

QueryableDataSourceView Class

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

System.Object
  System.Web.UI.DataSourceView
    System.Web.UI.WebControls.QueryableDataSourceView
      System.Web.UI.WebControls.ContextDataSourceView

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.

  Name Description
Protected method QueryableDataSourceView Initializes a new instance of the QueryableDataSourceView class.
Top
  Name Description
Public property 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.
Public property 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.
Public property AutoPage Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging by default.
Public property AutoSort Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports sorting by default.
Public property CanDelete Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports delete operations. (Overrides DataSourceView.CanDelete.)
Public property CanInsert Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports insert operations. (Overrides DataSourceView.CanInsert.)
Public property CanPage Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging. (Overrides DataSourceView.CanPage.)
Public property 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. (Overrides DataSourceView.CanRetrieveTotalRowCount.)
Public property 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. (Overrides DataSourceView.CanSort.)
Public property CanUpdate Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports update operations. (Overrides DataSourceView.CanUpdate.)
Public property DeleteParameters Gets the collection that contains the parameters that are used during a delete operation.
Protected property EntityType Gets the type of the data object to use for CUD operations.
Protected property Events Gets a list of event-handler delegates for the data source view. (Inherited from DataSourceView.)
Public property GroupBy Gets or sets the name or names of the properties to use during the select operation for grouping data.
Public property GroupByParameters Gets a collection of parameters whose values are used to create the GroupBy clause during the select operation.
Public property InsertParameters Gets a collection of parameters that are used during the insert operation.
Protected property IsTrackingViewState Gets a value that indicates whether the QueryableDataSourceView object is saving changes to its view state.
Public property Name Gets the name of the data source view. (Inherited from DataSourceView.)
Public property OrderBy Gets or sets the name or names of the properties that are used during the select operation to sort data.
Public property OrderByParameters Gets a collection of parameters that are used during the select operation to sort data.
Public property OrderGroupsBy Gets or sets the names of the properties that are used during the select operation to sort grouped data.
Public property OrderGroupsByParameters Gets a collection of parameters that are used to create the OrderGroupsBy clause.
Public property SelectNew Gets or sets the properties and calculated values that are included in the retrieved data.
Public property SelectNewParameters Gets the collection of parameters that are used during a data-retrieval operation.
Public property UpdateParameters Gets the collection of parameters that are used during an update operation.
Public property Where Gets or sets a value that specifies what conditions must be true for a row to be included in the retrieved data.
Public property WhereParameters Gets a collection of parameters that are used to create a Where clause.
Top
  Name Description
Protected method BuildDeleteObject Creates the objects to use for the delete operation.
Protected method 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.
Protected method BuildQuery Creates a Select query expression by using the select arguments of the data source.
Protected method BuildUpdateObjects Creates the objects to use for the update operation by using the specified values.
Public method CanExecute Determines whether the specified command can be executed. (Inherited from DataSourceView.)
Protected method ClearOriginalValues Clears the original values.
Protected method CreateQueryContext Creates an instance of a query context object that contains the evaluated parameter collections.
Public method Delete(IDictionary, IDictionary) Performs a delete operation.
Public method Delete(IDictionary, IDictionary, DataSourceViewOperationCallback) Performs an asynchronous delete operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected method DeleteObject Deletes a data object from a table.
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 data items that the QueryableDataSourceView object represents by using the specified values. (Overrides DataSourceView.ExecuteDelete(IDictionary, IDictionary).)
Protected method ExecuteInsert Performs an insert operation on the data items that the QueryableDataSourceView object represents by using the specified value. (Overrides DataSourceView.ExecuteInsert(IDictionary).)
Protected method ExecutePaging Executes paging by using the QueryContext object from the QueryableDataSource object.
Protected method ExecuteQuery Performs a query, sort, or paging operation on the IQueryable<T> object.
Protected method ExecuteQueryExpressions Executes query expressions by using an IQueryable object and the QueryContext object.
Protected method ExecuteSelect Performs a data-retrieval operation. (Overrides DataSourceView.ExecuteSelect(DataSourceSelectArguments).)
Protected method ExecuteSorting Performs a sorting operation.
Protected method ExecuteUpdate Performs an update operation. (Overrides DataSourceView.ExecuteUpdate(IDictionary, IDictionary, IDictionary).)
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.)
Protected method GetOriginalValues Retrieves the original values for the specified keys that were stored during the Select operation.
Protected method GetSource Gets initial IQueryable object for the data source view based on the query context.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method HandleValidationErrors Called by methods that perform CRUD operations when a CRUD operation fails in the data-object building process.
Public method Insert(IDictionary) Performs an asynchronous insert operation on the data items that the QueryableDataSourceView object represents.
Public method Insert(IDictionary, DataSourceViewOperationCallback) Performs an asynchronous insert operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected method InsertObject Inserts data objects into a QueryableDataSourceView object.
Protected method LoadViewState Restores the previously saved view state for the data source view.
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 OnQueryCreated Raises the QueryCreated event after the QueryableDataSource control has created an IQueryable object.
Protected method OnQueryParametersChanged Calls the RaiseViewChanged method.
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 RaiseViewChanged Calls the OnDataSourceViewChanged method.
Protected method SaveViewState Saves changes to view state for the QueryableDataSourceView object since the time that the page was posted to the server.
Public method Select Gets a list of data asynchronously from the underlying data storage. (Inherited from DataSourceView.)
Protected method StoreOriginalValues(IList) Stores the original values from the Select operation in the control's view state.
Protected method 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.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method TrackViewState Causes tracking of view-state changes to the server control so that they can be stored in the server control's state.
Public method Update(IDictionary, IDictionary, IDictionary) Performs an update operation.
Public method Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback) Performs an asynchronous update operation on the list of data that the DataSourceView object represents. (Inherited from DataSourceView.)
Protected method UpdateObject Updates a data object.
Top
  Name Description
Public event DataSourceViewChanged Occurs when the data source view has changed. (Inherited from DataSourceView.)
Public event QueryCreated Occurs when a query is created.
Top
  Name Description
Protected field Static member EventSelected Specifies whether the event that causes the data-retrieval operation to complete has occurred.
Protected field Static member EventSelecting Specifies whether the event that occurs before a data-retrieval operation has occurred.
Top
  Name Description
Explicit interface implemetation Private property IStateManager.IsTrackingViewState When implemented by a class, gets a value that indicates whether a server control is tracking its view-state changes.
Explicit interface implemetation Private method IStateManager.LoadViewState When implemented by a class, loads the server control's previously saved view state for the control.
Explicit interface implemetation Private method IStateManager.SaveViewState When implemented by a class, saves the changes to a server control's view state to an object.
Explicit interface implemetation Private method IStateManager.TrackViewState When 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

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ