This documentation is archived and is not being maintained.
LinqDataSourceView Methods
Visual Studio 2010
The LinqDataSourceView type exposes the following members.
| 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(DataSourceOperation) | Creates an instance of the data context type using the specified data source operation. (Overrides ContextDataSourceView::CreateContext(DataSourceOperation).) |
|
CreateContext(Type) | Creates an instance of the data context type. |
|
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.) |
|
DeleteDataObject | Deletes a data object from a table. |
|
DeleteObject | Deletes a data object from a table. (Overrides QueryableDataSourceView::DeleteObject(Object).) |
|
DisposeContext() | Disposes the context after an operation is performed. (Inherited from ContextDataSourceView.) |
|
DisposeContext(Object) | Disposes the data context. (Overrides ContextDataSourceView::DisposeContext(Object).) |
|
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 by using the specified keys and old values. (Overrides ContextDataSourceView::ExecuteDelete(IDictionary, IDictionary).) |
|
ExecuteInsert | Performs an insert operation by using the values specified in a collection. (Overrides ContextDataSourceView::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. (Overrides QueryableDataSourceView::ExecuteSelect(DataSourceSelectArguments).) |
|
ExecuteSorting | Performs a sorting operation. (Inherited from QueryableDataSourceView.) |
|
ExecuteUpdate | Performs an update operation. (Overrides ContextDataSourceView::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. (Inherited from ContextDataSourceView.) |
|
GetEntitySetType | Retrieves the entity set as a property, field, or data context. (Inherited from ContextDataSourceView.) |
|
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 | Returns the data source to apply a query to. (Overrides ContextDataSourceView::GetSource(QueryContext).) |
|
GetTableMemberInfo | Retrieves metadata about the data collection. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
HandleValidationErrors | Handles any exceptions that occur when a data operation fails while a data object is being created. (Overrides QueryableDataSourceView::HandleValidationErrors(IDictionary<String, Exception>, DataSourceOperation).) |
|
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.) |
|
InsertDataObject | Inserts a data object into a table. |
|
InsertObject | Inserts a data object into a LinqDataSourceView object. (Overrides QueryableDataSourceView::InsertObject(Object).) |
|
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.) |
|
OnContextCreated | Raises the ContextCreated event |
|
OnContextCreating | Raises the ContextCreating event. |
|
OnContextDisposing | Raises the ContextDisposing event. |
|
OnDataSourceViewChanged | Raises the DataSourceViewChanged event. (Inherited from DataSourceView.) |
|
OnDeleted | Raises the Deleted event. |
|
OnDeleting | Raises the Deleting event. |
|
OnException | Raises the Exception event when a data operation fails. |
|
OnInserted | Raises the Inserted event after the LinqDataSource control has completed an insert operation. |
|
OnInserting | Raises the Inserting event. |
|
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.) |
|
OnSelected | Raises the Selected event after the LinqDataSource control has completed a data retrieval operation. |
|
OnSelecting | Raises the Selecting event before the LinqDataSource control performs a data-retrieval operation. |
|
OnUpdated | Raises the Updated event after the LinqDataSource control has completed an update operation. |
|
OnUpdating | Raises the Updating event before the LinqDataSource control performs an update operation. |
|
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.) |
|
ResetDataObject | Resets the object that contains data to its original state. |
|
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(DataSourceSelectArguments) | Retrieves data from the data source. |
|
Select(DataSourceSelectArguments, DataSourceViewSelectCallback) | 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. (Overrides QueryableDataSourceView::StoreOriginalValues(IList).) |
|
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.) |
|
UpdateDataObject | Updates a data object. |
|
UpdateObject | Updates a data object. (Overrides QueryableDataSourceView::UpdateObject(Object, Object).) |
|
ValidateContextType | Checks whether the data context class derives from DataContext. |
|
ValidateDeleteSupported | Validates that the conditions exist to perform a delete operation. |
|
ValidateEditSupported | Validates that the conditions exist to perform an edit operation. |
|
ValidateInsertSupported | Validates that the conditions exist to perform an insert operation. |
|
ValidateTableType | Checks whether the type of the class that represents the data table is a generic type. |
|
ValidateUpdateSupported | Validates that the conditions exist to perform an update operation. |
| Name | Description | |
|---|---|---|
|
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.) |
Show: