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.

  NameDescription
Public method LinqDataSourceView Initializes a new instance of the LinqDataSourceView class, setting the specified LinqDataSource control as the owner of the current view.
Top

  NameDescription
Protected method CreateContext Creates an instance of the data context type.
Public method Delete Overloaded. Performs a delete operation.
Protected method DeleteDataObject Deletes a data object from a table.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method ExecuteDelete Performs a delete operation by using the specified keys and old values. (Overrides DataSourceView::ExecuteDelete(IDictionary, IDictionary).)
Protected method ExecuteInsert Performs an insert operation by using the values specified in a collection. (Overrides DataSourceView::ExecuteInsert(IDictionary).)
Protected method ExecuteSelect Performs a data retrieval operation. (Overrides DataSourceView::ExecuteSelect(DataSourceSelectArguments).)
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.)
Protected method GetDataObjectType Gets the data object type to use for delete, insert, and update operations.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetTableMemberInfo Retrieves metadata about the data collection.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method Insert Overloaded. Performs an insert operation.
Protected method InsertDataObject Inserts a data object into a table.
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 OnContextCreated Raises the ContextCreated event
Protected method OnContextCreating Raises the ContextCreating event.
Protected method OnContextDisposing Raises the ContextDisposing event.
Protected method OnDataSourceViewChanged Raises the DataSourceViewChanged event. (Inherited from DataSourceView.)
Protected method OnDeleted Raises the Deleted event.
Protected method OnDeleting Raises the Deleting event.
Protected method OnException Raises the Exception event when a data operation fails.
Protected method OnInserted Raises the Inserted event after the LinqDataSource control has completed an insert operation.
Protected method OnInserting Raises the Inserting event.
Protected method OnSelected Raises the Selected event after the LinqDataSource control has completed a data retrieval operation.
Protected method OnSelecting Raises the Selecting event before the LinqDataSource control performs a data-retrieval operation.
Protected method OnUpdated Raises the Updated event after the LinqDataSource control has completed an update operation.
Protected method OnUpdating Raises the Updating event before the LinqDataSource control performs an update operation.
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.)
Protected method ResetDataObject Resets the object that contains data to its original state.
Protected method SaveViewState Saves the changes to view state for the LinqDataSourceView control since the time that the page was posted back to the server.
Public method Select Overloaded. Retrieves data from the data source.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method TrackViewState Tracks view state changes.
Public method Update Overloaded. Performs an update operation.
Protected method UpdateDataObject Updates a data object.
Protected method ValidateContextType Checks whether the data context class derives from DataContext.
Protected method ValidateDeleteSupported Validates that the conditions exist to perform a delete operation.
Protected method ValidateInsertSupported Validates that the conditions exist to perform an insert operation.
Protected method ValidateOrderByParameter Validates that the OrderBy parameter value is a valid field name for the automatically generated OrderBy clause.
Protected method ValidateParameterName Verifies that the provided parameter name is valid.
Protected method ValidateTableType Checks whether the type of the class that represents the data table is a generic type.
Protected method ValidateUpdateSupported Validates that the conditions exist to perform an update operation.
Top

  NameDescription
Public property 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.
Public property 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.
Public property AutoPage Gets or sets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports automatic paging.
Public property AutoSort Gets or sets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports automatic sorting.
Public property 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.)
Public property 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.)
Public property 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.)
Public property 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.)
Public property 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.)
Public property 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.)
Protected property ContextType Gets the type of the data context class.
Public property ContextTypeName Gets or sets the name of the data context class that contains the field or property specified in the TableName property.
Public property DeleteParameters Gets the parameters collection that contains the parameters that are used during a delete operation.
Public property EnableDelete Gets or sets a value that indicates whether the data source view supports deleting rows.
Public property EnableInsert Gets or sets a value that indicates whether the data source view supports adding new rows.
Public property EnableObjectTracking Gets or sets a value that indicates whether changes to the data-context object are tracked.
Public property EnableUpdate Gets or sets a value that indicates whether the data source view supports updating rows.
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 LinqDataSourceView 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 to use during the select operation for sorting data.
Public property OrderByParameters Gets a collection of parameters that are used to create the OrderBy clause.
Public property OrderGroupsBy Gets or sets the names of the properties to use during the select operation for sorting 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 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.
Public property TableName Gets or sets the name of a property or field of the data context class that contains the data collection.
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 record to be included in the retrieved data.
Public property WhereParameters Gets a collection of parameters that are used to create the Where clause.
Top

  NameDescription
Public event ContextCreated Occurs after an instance of the context type object has been created.
Public event ContextCreating Occurs before an instance of the context type object is created.
Public event ContextDisposing Occurs before disposing the context type object.
Public event DataSourceViewChanged Occurs when the data source view has changed. (Inherited from DataSourceView.)
Public event Deleted Occurs when a delete operation has finished.
Public event Deleting Occurs before a delete operation.
Public event Inserted Occurs when an insert operation has finished.
Public event Inserting Occurs before an insert operation.
Public event Selected Occurs when a data-retrieval operation has completed.
Public event Selecting Occurs before a data-retrieval operation.
Public event Updated Occurs when an update operation has finished.
Public event Updating Occurs before an update operation.
Top

  NameDescription
Explicit interface implemetation Private property IStateManager::IsTrackingViewState For a description of this member, see the IStateManager::IsTrackingViewState property.
Explicit interface implemetation Private method IStateManager::LoadViewState Infrastructure. For a description of this member, see IStateManager::LoadViewState.
Explicit interface implemetation Private method IStateManager::SaveViewState Infrastructure. For a description of this member, see the IStateManager::SaveViewState method.
Explicit interface implemetation Private method IStateManager::TrackViewState Infrastructure. For a description of this member, see the IStateManagerTrackViewState method.
Top
Show: