This documentation is archived and is not being maintained.
LinqDataSourceView Members
Visual Studio 2008
Supports the LinqDataSource control and provides an interface for data-bound controls to perform LINQ data operations.
The LinqDataSourceView type exposes the following members.
| Name | Description | |
|---|---|---|
|
LinqDataSourceView | Initializes a new instance of the LinqDataSourceView class, setting the specified LinqDataSource control as the owner of the current view. |
| Name | Description | |
|---|---|---|
|
CreateContext | Creates an instance of the data context type. |
|
Delete | Overloaded. Performs a delete operation. |
|
DeleteDataObject | Deletes a data object from a table. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
ExecuteDelete | Performs a delete operation by using the specified keys and old values. (Overrides DataSourceView::ExecuteDelete(IDictionary, IDictionary).) |
|
ExecuteInsert | Performs an insert operation by using the values specified in a collection. (Overrides DataSourceView::ExecuteInsert(IDictionary).) |
|
ExecuteSelect | Performs a data retrieval operation. (Overrides DataSourceView::ExecuteSelect(DataSourceSelectArguments).) |
|
ExecuteUpdate | Performs an update operation. (Overrides DataSourceView::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 | Gets the data object type to use for delete, insert, and update operations. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetTableMemberInfo | Retrieves metadata about the data collection. |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
Insert | Overloaded. Performs an insert operation. |
|
InsertDataObject | Inserts a data object into a table. |
|
LoadViewState | Restores the previously saved view state for the data source view. |
|
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. |
|
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.) |
|
ResetDataObject | Resets the object that contains data to its original state. |
|
SaveViewState | Saves the changes to view state for the LinqDataSourceView control since the time that the page was posted back to the server. |
|
Select | Overloaded. Retrieves data from the data source. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
TrackViewState | Tracks view state changes. |
|
Update | Overloaded. Performs an update operation. |
|
UpdateDataObject | Updates a data object. |
|
ValidateContextType | Checks whether the data context class derives from DataContext. |
|
ValidateDeleteSupported | Validates that the conditions exist to perform a delete operation. |
|
ValidateInsertSupported | Validates that the conditions exist to perform an insert operation. |
|
ValidateOrderByParameter | Validates that the OrderBy parameter value is a valid field name for the automatically generated OrderBy clause. |
|
ValidateParameterName | Verifies that the provided parameter name is valid. |
|
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 | |
|---|---|---|
|
AutoGenerateOrderByClause | Gets or sets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports dynamic creation of an OrderBy clause. |
|
AutoGenerateWhereClause | Gets or sets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports dynamic creation of a Where clause. |
|
AutoPage | Gets or sets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports automatic paging. |
|
AutoSort | Gets or sets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports automatic sorting. |
|
CanDelete | Gets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports the delete operation. (Overrides DataSourceView::CanDelete.) |
|
CanInsert | Gets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports the insert operation. (Overrides DataSourceView::CanInsert.) |
|
CanPage | Gets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports paging of retrieved data. (Overrides DataSourceView::CanPage.) |
|
CanRetrieveTotalRowCount | Gets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports retrieving the total number of data rows, in addition to retrieving the data. (Overrides DataSourceView::CanRetrieveTotalRowCount.) |
|
CanSort | Gets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports a sorted view of the retrieved data. (Overrides DataSourceView::CanSort.) |
|
CanUpdate | Gets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports the update operation. (Overrides DataSourceView::CanUpdate.) |
|
ContextType | Gets the type of the data context class. |
|
ContextTypeName | Gets or sets the name of the data context class that contains the field or property specified in the TableName property. |
|
DeleteParameters | Gets the parameters collection that contains the parameters that are used during a delete operation. |
|
EnableDelete | Gets or sets a value that indicates whether the data source view supports deleting rows. |
|
EnableInsert | Gets or sets a value that indicates whether the data source view supports adding new rows. |
|
EnableObjectTracking | Gets or sets a value that indicates whether changes to the data-context object are tracked. |
|
EnableUpdate | Gets or sets a value that indicates whether the data source view supports updating rows. |
|
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. |
|
GroupByParameters | Gets a collection of parameters whose values are used to create the GroupBy clause during the select operation. |
|
InsertParameters | Gets a collection of parameters that are used during the insert operation. |
|
IsTrackingViewState | Gets a value that indicates whether the LinqDataSourceView object is saving changes to its view state. |
|
Name | Gets the name of the data source view. (Inherited from DataSourceView.) |
|
OrderBy | Gets or sets the name or names of the properties to use during the select operation for sorting data. |
|
OrderByParameters | Gets a collection of parameters that are used to create the OrderBy clause. |
|
OrderGroupsBy | Gets or sets the names of the properties to use during the select operation for sorting grouped data. |
|
OrderGroupsByParameters | Gets a collection of parameters that are used to create the OrderGroupsBy clause. |
|
SelectNew | Gets or sets the properties and calculated values that are included in the retrieved data. |
|
SelectNewParameters | Gets the collection of parameters that are used during a data-retrieval operation. |
|
StoreOriginalValuesInViewState | Gets or sets a value that indicates that original values from the select operation will be stored in view state when delete or update operations are enabled. |
|
TableName | Gets or sets the name of a property or field of the data context class that contains the data collection. |
|
UpdateParameters | Gets the collection of parameters that are used during an update operation. |
|
Where | Gets or sets a value that specifies what conditions must be true for a record to be included in the retrieved data. |
|
WhereParameters | Gets a collection of parameters that are used to create the Where clause. |
| Name | Description | |
|---|---|---|
|
ContextCreated | Occurs after an instance of the context type object has been created. |
|
ContextCreating | Occurs before an instance of the context type object is created. |
|
ContextDisposing | Occurs before disposing the context type object. |
|
DataSourceViewChanged | Occurs when the data source view has changed. (Inherited from DataSourceView.) |
|
Deleted | Occurs when a delete operation has finished. |
|
Deleting | Occurs before a delete operation. |
|
Inserted | Occurs when an insert operation has finished. |
|
Inserting | Occurs before an insert operation. |
|
Selected | Occurs when a data-retrieval operation has completed. |
|
Selecting | Occurs before a data-retrieval operation. |
|
Updated | Occurs when an update operation has finished. |
|
Updating | Occurs before an update operation. |
| Name | Description | |
|---|---|---|
|
IStateManager::IsTrackingViewState | For a description of this member, see the IStateManager::IsTrackingViewState property. |
|
IStateManager::LoadViewState | Infrastructure. For a description of this member, see IStateManager::LoadViewState. |
|
IStateManager::SaveViewState | Infrastructure. For a description of this member, see the IStateManager::SaveViewState method. |
|
IStateManager::TrackViewState | Infrastructure. For a description of this member, see the IStateManagerTrackViewState method. |
Show: