QueryableDataSourceView QueryableDataSourceView QueryableDataSourceView QueryableDataSourceView Class

Definition

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

public ref class QueryableDataSourceView abstract : System::Web::UI::DataSourceView, System::Web::UI::IStateManager
public abstract class QueryableDataSourceView : System.Web.UI.DataSourceView, System.Web.UI.IStateManager
type QueryableDataSourceView = class
    inherit DataSourceView
    interface IStateManager
Public MustInherit Class QueryableDataSourceView
Inherits DataSourceView
Implements IStateManager
Inheritance
QueryableDataSourceViewQueryableDataSourceViewQueryableDataSourceViewQueryableDataSourceView
Derived
Implements

Constructors

QueryableDataSourceView(DataSourceControl, String, HttpContext) QueryableDataSourceView(DataSourceControl, String, HttpContext) QueryableDataSourceView(DataSourceControl, String, HttpContext) QueryableDataSourceView(DataSourceControl, String, HttpContext)

Initializes a new instance of the QueryableDataSourceView class.

Fields

EventSelected EventSelected EventSelected EventSelected

Specifies whether the event that causes the data-retrieval operation to complete has occurred.

EventSelecting EventSelecting EventSelecting EventSelecting

Specifies whether the event that occurs before a data-retrieval operation has occurred.

Properties

AutoGenerateOrderByClause AutoGenerateOrderByClause AutoGenerateOrderByClause 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.

AutoGenerateWhereClause AutoGenerateWhereClause AutoGenerateWhereClause 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.

AutoPage AutoPage AutoPage AutoPage

Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging by default.

AutoSort AutoSort AutoSort AutoSort

Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports sorting by default.

CanDelete CanDelete CanDelete CanDelete

Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports delete operations.

CanInsert CanInsert CanInsert CanInsert

Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports insert operations.

CanPage CanPage CanPage CanPage

Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging.

CanRetrieveTotalRowCount CanRetrieveTotalRowCount CanRetrieveTotalRowCount 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.

CanSort CanSort CanSort 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.

CanUpdate CanUpdate CanUpdate CanUpdate

Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports update operations.

DeleteParameters DeleteParameters DeleteParameters DeleteParameters

Gets the collection that contains the parameters that are used during a delete operation.

EntityType EntityType EntityType EntityType

Gets the type of the data object to use for CUD operations.

Events Events Events Events

Gets a list of event-handler delegates for the data source view.

(Inherited from DataSourceView)
GroupBy GroupBy GroupBy GroupBy

Gets or sets the name or names of the properties to use during the select operation for grouping data.

GroupByParameters GroupByParameters GroupByParameters GroupByParameters

Gets a collection of parameters whose values are used to create the GroupBy clause during the select operation.

InsertParameters InsertParameters InsertParameters InsertParameters

Gets a collection of parameters that are used during the insert operation.

IsTrackingViewState IsTrackingViewState IsTrackingViewState IsTrackingViewState

Gets a value that indicates whether the QueryableDataSourceView object is saving changes to its view state.

Name Name Name Name

Gets the name of the data source view.

(Inherited from DataSourceView)
OrderBy OrderBy OrderBy OrderBy

Gets or sets the name or names of the properties that are used during the select operation to sort data.

OrderByParameters OrderByParameters OrderByParameters OrderByParameters

Gets a collection of parameters that are used during the select operation to sort data.

OrderGroupsBy OrderGroupsBy OrderGroupsBy OrderGroupsBy

Gets or sets the names of the properties that are used during the select operation to sort grouped data.

OrderGroupsByParameters OrderGroupsByParameters OrderGroupsByParameters OrderGroupsByParameters

Gets a collection of parameters that are used to create the OrderGroupsBy clause.

SelectNew SelectNew SelectNew SelectNew

Gets or sets the properties and calculated values that are included in the retrieved data.

SelectNewParameters SelectNewParameters SelectNewParameters SelectNewParameters

Gets the collection of parameters that are used during a data-retrieval operation.

UpdateParameters UpdateParameters UpdateParameters UpdateParameters

Gets the collection of parameters that are used during an update operation.

Where Where Where Where

Gets or sets a value that specifies what conditions must be true for a row to be included in the retrieved data.

WhereParameters WhereParameters WhereParameters WhereParameters

Gets a collection of parameters that are used to create a Where clause.

Methods

BuildDeleteObject(IDictionary, IDictionary, IDictionary<String,Exception>) BuildDeleteObject(IDictionary, IDictionary, IDictionary<String,Exception>) BuildDeleteObject(IDictionary, IDictionary, IDictionary<String,Exception>) BuildDeleteObject(IDictionary, IDictionary, IDictionary<String,Exception>)

Creates the objects to use for the delete operation.

BuildInsertObject(IDictionary, IDictionary<String,Exception>) BuildInsertObject(IDictionary, IDictionary<String,Exception>) BuildInsertObject(IDictionary, IDictionary<String,Exception>) BuildInsertObject(IDictionary, IDictionary<String,Exception>)

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.

BuildQuery(DataSourceSelectArguments) BuildQuery(DataSourceSelectArguments) BuildQuery(DataSourceSelectArguments) BuildQuery(DataSourceSelectArguments)

Creates a Select query expression by using the select arguments of the data source.

BuildUpdateObjects(IDictionary, IDictionary, IDictionary, IDictionary<String,Exception>) BuildUpdateObjects(IDictionary, IDictionary, IDictionary, IDictionary<String,Exception>) BuildUpdateObjects(IDictionary, IDictionary, IDictionary, IDictionary<String,Exception>) BuildUpdateObjects(IDictionary, IDictionary, IDictionary, IDictionary<String,Exception>)

Creates the objects to use for the update operation by using the specified values.

CanExecute(String) CanExecute(String) CanExecute(String) CanExecute(String)

Determines whether the specified command can be executed.

(Inherited from DataSourceView)
ClearOriginalValues() ClearOriginalValues() ClearOriginalValues() ClearOriginalValues()

Clears the original values.

CreateQueryContext(DataSourceSelectArguments) CreateQueryContext(DataSourceSelectArguments) CreateQueryContext(DataSourceSelectArguments) CreateQueryContext(DataSourceSelectArguments)

Creates an instance of a query context object that contains the evaluated parameter collections.

Delete(IDictionary, IDictionary) Delete(IDictionary, IDictionary) Delete(IDictionary, IDictionary) Delete(IDictionary, IDictionary)

Performs a delete operation.

Delete(IDictionary, IDictionary, DataSourceViewOperationCallback) Delete(IDictionary, IDictionary, DataSourceViewOperationCallback) Delete(IDictionary, IDictionary, DataSourceViewOperationCallback) Delete(IDictionary, IDictionary, DataSourceViewOperationCallback)

Performs an asynchronous delete operation on the list of data that the DataSourceView object represents.

(Inherited from DataSourceView)
DeleteObject(Object) DeleteObject(Object) DeleteObject(Object) DeleteObject(Object)

Deletes a data object from a table.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ExecuteCommand(String, IDictionary, IDictionary) ExecuteCommand(String, IDictionary, IDictionary) ExecuteCommand(String, IDictionary, IDictionary) ExecuteCommand(String, IDictionary, IDictionary)

Executes the specified command.

(Inherited from DataSourceView)
ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback) ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback) ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback) ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)

Executes the specified command.

(Inherited from DataSourceView)
ExecuteDelete(IDictionary, IDictionary) ExecuteDelete(IDictionary, IDictionary) ExecuteDelete(IDictionary, IDictionary) ExecuteDelete(IDictionary, IDictionary)

Performs a delete operation on data items that the QueryableDataSourceView object represents by using the specified values.

ExecuteInsert(IDictionary) ExecuteInsert(IDictionary) ExecuteInsert(IDictionary) ExecuteInsert(IDictionary)

Performs an insert operation on the data items that the QueryableDataSourceView object represents by using the specified value.

ExecutePaging(IQueryable, QueryContext) ExecutePaging(IQueryable, QueryContext) ExecutePaging(IQueryable, QueryContext) ExecutePaging(IQueryable, QueryContext)

Executes paging by using the QueryContext object from the QueryableDataSource object.

ExecuteQuery(IQueryable, QueryContext) ExecuteQuery(IQueryable, QueryContext) ExecuteQuery(IQueryable, QueryContext) ExecuteQuery(IQueryable, QueryContext)

Performs a query, sort, or paging operation on the IQueryable<T> object.

ExecuteQueryExpressions(IQueryable, QueryContext) ExecuteQueryExpressions(IQueryable, QueryContext) ExecuteQueryExpressions(IQueryable, QueryContext) ExecuteQueryExpressions(IQueryable, QueryContext)

Executes query expressions by using an IQueryable object and the QueryContext object.

ExecuteSelect(DataSourceSelectArguments) ExecuteSelect(DataSourceSelectArguments) ExecuteSelect(DataSourceSelectArguments) ExecuteSelect(DataSourceSelectArguments)

Performs a data-retrieval operation.

ExecuteSorting(IQueryable, QueryContext) ExecuteSorting(IQueryable, QueryContext) ExecuteSorting(IQueryable, QueryContext) ExecuteSorting(IQueryable, QueryContext)

Performs a sorting operation.

ExecuteUpdate(IDictionary, IDictionary, IDictionary) ExecuteUpdate(IDictionary, IDictionary, IDictionary) ExecuteUpdate(IDictionary, IDictionary, IDictionary) ExecuteUpdate(IDictionary, IDictionary, IDictionary)

Performs an update operation.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetOriginalValues(IDictionary) GetOriginalValues(IDictionary) GetOriginalValues(IDictionary) GetOriginalValues(IDictionary)

Retrieves the original values for the specified keys that were stored during the Select operation.

GetSource(QueryContext) GetSource(QueryContext) GetSource(QueryContext) GetSource(QueryContext)

Gets initial IQueryable object for the data source view based on the query context.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
HandleValidationErrors(IDictionary<String,Exception>, DataSourceOperation) HandleValidationErrors(IDictionary<String,Exception>, DataSourceOperation) HandleValidationErrors(IDictionary<String,Exception>, DataSourceOperation) HandleValidationErrors(IDictionary<String,Exception>, DataSourceOperation)

Called by methods that perform CRUD operations when a CRUD operation fails in the data-object building process.

Insert(IDictionary) Insert(IDictionary) Insert(IDictionary) Insert(IDictionary)

Performs an asynchronous insert operation on the data items that the QueryableDataSourceView object represents.

Insert(IDictionary, DataSourceViewOperationCallback) Insert(IDictionary, DataSourceViewOperationCallback) Insert(IDictionary, DataSourceViewOperationCallback) Insert(IDictionary, DataSourceViewOperationCallback)

Performs an asynchronous insert operation on the list of data that the DataSourceView object represents.

(Inherited from DataSourceView)
InsertObject(Object) InsertObject(Object) InsertObject(Object) InsertObject(Object)

Inserts data objects into a QueryableDataSourceView object.

LoadViewState(Object) LoadViewState(Object) LoadViewState(Object) LoadViewState(Object)

Restores the previously saved view state for the data source view.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnDataSourceViewChanged(EventArgs) OnDataSourceViewChanged(EventArgs) OnDataSourceViewChanged(EventArgs) OnDataSourceViewChanged(EventArgs)

Raises the DataSourceViewChanged event.

(Inherited from DataSourceView)
OnQueryCreated(QueryCreatedEventArgs) OnQueryCreated(QueryCreatedEventArgs) OnQueryCreated(QueryCreatedEventArgs) OnQueryCreated(QueryCreatedEventArgs)

Raises the QueryCreated event after the QueryableDataSource control has created an IQueryable object.

OnQueryParametersChanged(Object, EventArgs) OnQueryParametersChanged(Object, EventArgs) OnQueryParametersChanged(Object, EventArgs) OnQueryParametersChanged(Object, EventArgs)

Calls the RaiseViewChanged() method.

RaiseUnsupportedCapabilityError(DataSourceCapabilities) RaiseUnsupportedCapabilityError(DataSourceCapabilities) RaiseUnsupportedCapabilityError(DataSourceCapabilities) RaiseUnsupportedCapabilityError(DataSourceCapabilities)

Called by the RaiseUnsupportedCapabilitiesError(DataSourceView) method to compare the capabilities requested for an ExecuteSelect(DataSourceSelectArguments) operation against those that the view supports.

(Inherited from DataSourceView)
RaiseViewChanged() RaiseViewChanged() RaiseViewChanged() RaiseViewChanged()

Calls the OnDataSourceViewChanged(EventArgs) method.

SaveViewState() SaveViewState() SaveViewState() SaveViewState()

Saves changes to view state for the QueryableDataSourceView object since the time that the page was posted to the server.

Select(DataSourceSelectArguments, DataSourceViewSelectCallback) Select(DataSourceSelectArguments, DataSourceViewSelectCallback) Select(DataSourceSelectArguments, DataSourceViewSelectCallback) Select(DataSourceSelectArguments, DataSourceViewSelectCallback)

Gets a list of data asynchronously from the underlying data storage.

(Inherited from DataSourceView)
StoreOriginalValues(IList) StoreOriginalValues(IList) StoreOriginalValues(IList) StoreOriginalValues(IList)

Stores the original values from the Select operation in the control's view state.

StoreOriginalValues(IList, Func<PropertyDescriptor,Boolean>) StoreOriginalValues(IList, Func<PropertyDescriptor,Boolean>) StoreOriginalValues(IList, Func<PropertyDescriptor,Boolean>) 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.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TrackViewState() TrackViewState() TrackViewState() TrackViewState()

Causes tracking of view-state changes to the server control so that they can be stored in the server control's state.

Update(IDictionary, IDictionary, IDictionary) Update(IDictionary, IDictionary, IDictionary) Update(IDictionary, IDictionary, IDictionary) Update(IDictionary, IDictionary, IDictionary)

Performs an update operation.

Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback) Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback) Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback) Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback)

Performs an asynchronous update operation on the list of data that the DataSourceView object represents.

(Inherited from DataSourceView)
UpdateObject(Object, Object) UpdateObject(Object, Object) UpdateObject(Object, Object) UpdateObject(Object, Object)

Updates a data object.

Events

DataSourceViewChanged DataSourceViewChanged DataSourceViewChanged DataSourceViewChanged

Occurs when the data source view has changed.

(Inherited from DataSourceView)
QueryCreated QueryCreated QueryCreated QueryCreated

Occurs when a query is created.

Explicit Interface Implementations

IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState IStateManager.IsTrackingViewState

When implemented by a class, gets a value that indicates whether a server control is tracking its view-state changes.

IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object) IStateManager.LoadViewState(Object)

When implemented by a class, loads the server control's previously saved view state for the control.

IStateManager.SaveViewState() IStateManager.SaveViewState() IStateManager.SaveViewState() IStateManager.SaveViewState()

When implemented by a class, saves the changes to a server control's view state to an object.

IStateManager.TrackViewState() IStateManager.TrackViewState() IStateManager.TrackViewState() IStateManager.TrackViewState()

When implemented by a class, gets a value that indicates whether a server control is tracking its view-state changes.

Applies to