ContextDataSourceView Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

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

[<AbstractClass>]
type ContextDataSourceView = 
    class
        inherit QueryableDataSourceView
    end

NameDescription
System_CAPS_protmethodContextDataSourceView(DataSourceControl, String, HttpContext)

Initializes a new instance of the ContextDataSourceView class.

NameDescription
System_CAPS_pubpropertyAutoGenerateOrderByClause

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.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyAutoGenerateWhereClause

Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control creates a dynamic Where clause.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyAutoPage

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

System_CAPS_pubpropertyAutoSort

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

System_CAPS_pubpropertyCanDelete

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

System_CAPS_pubpropertyCanInsert

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

System_CAPS_pubpropertyCanPage

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

System_CAPS_pubpropertyCanRetrieveTotalRowCount

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.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyCanSort

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.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyCanUpdate

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

System_CAPS_protpropertyContext

Gets or sets the current data context.

System_CAPS_pubpropertyContextType

Gets the type of the data context.

System_CAPS_pubpropertyContextTypeName

Gets or sets the name of the data context class that contains the field or property that is specified in the TableName property.

System_CAPS_pubpropertyDeleteParameters

Gets the collection that contains the parameters that are used during a delete operation.(Inherited from QueryableDataSourceView.)

System_CAPS_protpropertyEntitySet

Gets or sets the object that contains the value of the data to retrieve.

System_CAPS_pubpropertyEntitySetName

Gets or sets the name of the property or field in the data-context class that represents a data collection.

System_CAPS_protpropertyEntitySetType

Gets or sets the name of the object that is created for an insert, delete, or update operation.

System_CAPS_protpropertyEntityType

Gets or sets the object that is created for an insert, delete, or update operation.(Overrides QueryableDataSourceView.EntityType.)

System_CAPS_pubpropertyEntityTypeName

Gets or sets the name of the object that is created for an insert, delete, or update operation.

System_CAPS_protpropertyEvents

Gets a list of event-handler delegates for the data source view.(Inherited from DataSourceView.)

System_CAPS_pubpropertyGroupBy

Gets or sets the name or names of the properties to use during the select operation for grouping data.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyGroupByParameters

Gets a collection of parameters whose values are used to create the GroupBy clause during the select operation.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyInsertParameters

Gets a collection of parameters that are used during the insert operation.(Inherited from QueryableDataSourceView.)

System_CAPS_protpropertyIsTrackingViewState

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

System_CAPS_pubpropertyName

Gets the name of the data source view.(Inherited from DataSourceView.)

System_CAPS_pubpropertyOrderBy

Gets or sets the name or names of the properties that are used during the select operation to sort data.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyOrderByParameters

Gets a collection of parameters that are used during the select operation to sort data.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyOrderGroupsBy

Gets or sets the names of the properties that are used during the select operation to sort grouped data.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyOrderGroupsByParameters

Gets a collection of parameters that are used to create the OrderGroupsBy clause.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertySelectNew

Gets or sets the properties and calculated values that are included in the retrieved data.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertySelectNewParameters

Gets the collection of parameters that are used during a data-retrieval operation.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyUpdateParameters

Gets the collection of parameters that are used during an update operation.(Inherited from QueryableDataSourceView.)

System_CAPS_pubpropertyWhere

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

System_CAPS_pubpropertyWhereParameters

Gets a collection of parameters that are used to create a Where clause.(Inherited from QueryableDataSourceView.)

NameDescription
System_CAPS_protmethodBuildDeleteObject(IDictionary, IDictionary, IDictionary<String, Exception>)

Creates the objects to use for the delete operation.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodBuildInsertObject(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.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodBuildQuery(DataSourceSelectArguments)

Creates a Select query expression by using the select arguments of the data source.(Inherited from QueryableDataSourceView.)

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

Creates the objects to use for the update operation by using the specified values.(Inherited from QueryableDataSourceView.)

System_CAPS_pubmethodCanExecute(String)

Determines whether the specified command can be executed.(Inherited from DataSourceView.)

System_CAPS_protmethodClearOriginalValues()

Clears the original values.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodCreateContext(DataSourceOperation)

Creates an instance of the data context and entity-set type for the specified operation.

System_CAPS_protmethodCreateQueryContext(DataSourceSelectArguments)

Creates an instance of a query context object that contains the evaluated parameter collections.(Inherited from QueryableDataSourceView.)

System_CAPS_pubmethodDelete(IDictionary, IDictionary)

Performs a delete operation.(Inherited from QueryableDataSourceView.)

System_CAPS_pubmethodDelete(IDictionary, IDictionary, DataSourceViewOperationCallback)

Performs an asynchronous delete operation on the list of data that the DataSourceView object represents.(Inherited from DataSourceView.)

System_CAPS_protmethodDeleteObject(Object)

Deletes a data object from a table.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodDisposeContext()

Disposes the context after an operation is performed.

System_CAPS_protmethodDisposeContext(Object)

Disposes the specified data context after an operation is performed.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodExecuteCommand(String, IDictionary, IDictionary)

Executes the specified command.(Inherited from DataSourceView.)

System_CAPS_pubmethodExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)

Executes the specified command.(Inherited from DataSourceView.)

System_CAPS_protmethodExecuteDelete(IDictionary, IDictionary)

Performs a delete operation using the specified keys and using row values that are used to detect conflicts.(Overrides QueryableDataSourceView.ExecuteDelete(IDictionary, IDictionary).)

System_CAPS_protmethodExecuteInsert(IDictionary)

Performs an insert operation by using the values specified in a collection.(Overrides QueryableDataSourceView.ExecuteInsert(IDictionary).)

System_CAPS_protmethodExecutePaging(IQueryable, QueryContext)

Executes paging by using the QueryContext object from the QueryableDataSource object.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodExecuteQuery(IQueryable, QueryContext)

Performs a query, sort, or paging operation on the IQueryable<'T> object.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodExecuteQueryExpressions(IQueryable, QueryContext)

Executes query expressions by using an IQueryable object and the QueryContext object.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodExecuteSelect(DataSourceSelectArguments)

Performs a data-retrieval operation.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodExecuteSorting(IQueryable, QueryContext)

Performs a sorting operation.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodExecuteUpdate(IDictionary, IDictionary, IDictionary)

Performs an update operation by using the specified row-key values, the row values, and the row values that are used to detect conflicts.(Overrides QueryableDataSourceView.ExecuteUpdate(IDictionary, IDictionary, IDictionary).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_protmethodGetDataObjectType(Type)

Retrieves the type of data object to use for the delete, insert, and update operations.

System_CAPS_protmethodGetEntitySetType()

Retrieves the entity set as a property, field, or data context.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetOriginalValues(IDictionary)

Retrieves the original values for the specified keys that were stored during the Select operation.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodGetSource(QueryContext)

Retrieves the source of the query context.(Overrides QueryableDataSourceView.GetSource(QueryContext).)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodHandleValidationErrors(IDictionary<String, Exception>, DataSourceOperation)

Called by methods that perform CRUD operations when a CRUD operation fails in the data-object building process. (Inherited from QueryableDataSourceView.)

System_CAPS_pubmethodInsert(IDictionary)

Performs an asynchronous insert operation on the data items that the QueryableDataSourceView object represents.(Inherited from QueryableDataSourceView.)

System_CAPS_pubmethodInsert(IDictionary, DataSourceViewOperationCallback)

Performs an asynchronous insert operation on the list of data that the DataSourceView object represents.(Inherited from DataSourceView.)

System_CAPS_protmethodInsertObject(Object)

Inserts data objects into a QueryableDataSourceView object.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodLoadViewState(Object)

Restores the previously saved view state for the data source view.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnDataSourceViewChanged(EventArgs)

Raises the DataSourceViewChanged event.(Inherited from DataSourceView.)

System_CAPS_protmethodOnQueryCreated(QueryCreatedEventArgs)

Raises the QueryCreated event after the QueryableDataSource control has created an IQueryable object.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodOnQueryParametersChanged(Object, EventArgs)

Calls the RaiseViewChanged method. (Inherited from QueryableDataSourceView.)

System_CAPS_protmethodRaiseUnsupportedCapabilityError(DataSourceCapabilities)

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

System_CAPS_pubmethodRaiseViewChanged()

Calls the OnDataSourceViewChanged method. (Inherited from QueryableDataSourceView.)

System_CAPS_protmethodSaveViewState()

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

System_CAPS_pubmethodSelect(DataSourceSelectArguments, DataSourceViewSelectCallback)

Gets a list of data asynchronously from the underlying data storage.(Inherited from DataSourceView.)

System_CAPS_protmethodStoreOriginalValues(IList)

Stores the original values from the Select operation in the control's view state.(Inherited from QueryableDataSourceView.)

System_CAPS_protmethodStoreOriginalValues(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.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodTrackViewState()

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

System_CAPS_pubmethodUpdate(IDictionary, IDictionary, IDictionary)

Performs an update operation.(Inherited from QueryableDataSourceView.)

System_CAPS_pubmethodUpdate(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback)

Performs an asynchronous update operation on the list of data that the DataSourceView object represents.(Inherited from DataSourceView.)

System_CAPS_protmethodUpdateObject(Object, Object)

Updates a data object.(Inherited from QueryableDataSourceView.)

NameDescription
System_CAPS_protfieldSystem_CAPS_staticEventContextCreated

Indicates that an event occurred after an instance of the context type object was created.

System_CAPS_protfieldSystem_CAPS_staticEventContextCreating

Indicates that an event occurs before an instance of the context type object is created.

System_CAPS_protfieldSystem_CAPS_staticEventContextDisposing

Indicates that an event occurs before an instance of the context type object is disposed.

NameDescription
System_CAPS_pubeventDataSourceViewChanged

Occurs when the data source view has changed.(Inherited from DataSourceView.)

System_CAPS_pubeventQueryCreated

Occurs when a query is created.(Inherited from QueryableDataSourceView.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.LoadViewState(Object)

When implemented by a class, loads the server control's previously saved view state for the control.(Inherited from QueryableDataSourceView.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.SaveViewState()

When implemented by a class, saves the changes to a server control's view state to an object. (Inherited from QueryableDataSourceView.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager.TrackViewState()

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

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIStateManager.IsTrackingViewState

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

.NET Framework
Available since 4.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: