QueryableDataSourceView 类

定义

支持 QueryableDataSource 控件并提供一个接口,使数据绑定控件可以执行 LINQ 数据操作。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
继承
QueryableDataSourceView
派生
实现

构造函数

QueryableDataSourceView(DataSourceControl, String, HttpContext)

初始化 QueryableDataSourceView 类的新实例。Initializes a new instance of the QueryableDataSourceView class.

字段

EventSelected

指定导致数据检索操作完成的事件是否已发生。Specifies whether the event that causes the data-retrieval operation to complete has occurred.

EventSelecting

指定在数据检索操作之前发生的事件是否已发生。Specifies whether the event that occurs before a data-retrieval operation has occurred.

属性

AutoGenerateOrderByClause

获取或设置一个值,该值指示与当前 QueryableDataSourceView 控件关联的 QueryableDataSource 对象是否创建动态 OrderBy 子句。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

获取或设置一个值,该值指示与当前 QueryableDataSourceView 控件关联的 QueryableDataSource 对象是否创建动态 Where 子句。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

获取或设置一个值,该值指示与当前 QueryableDataSourceView 控件关联的 QueryableDataSource 对象默认情况下是否支持分页。Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging by default.

AutoSort

获取或设置一个值,该值指示与当前 QueryableDataSourceView 控件关联的 QueryableDataSource 对象默认情况下是否支持排序。Gets or sets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports sorting by default.

CanDelete

获取一个值,该值指示与当前 QueryableDataSourceView 控件关联的 QueryableDataSource 对象是否支持删除操作。Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports delete operations.

CanInsert

获取一个值,该值指示与当前 QueryableDataSourceView 控件关联的 QueryableDataSource 对象是否支持插入操作。Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports insert operations.

CanPage

获取一个值,该值指示与当前 QueryableDataSourceView 控件关联的 QueryableDataSource 对象是否支持分页。Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports paging.

CanRetrieveTotalRowCount

获取一个值,该值指示与当前 QueryableDataSourceView 控件关联的 QueryableDataSource 对象是否支持检索总数据行数以及检索数据。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

获取一个值,该值指示与当前 QueryableDataSource 控件相关联的 QueryableDataSourceView 对象是否支持对检索数据的排序视图。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

获取一个值,该值指示与当前 QueryableDataSourceView 控件关联的 QueryableDataSource 对象是否支持更新操作。Gets a value that indicates whether the QueryableDataSourceView object that is associated with the current QueryableDataSource control supports update operations.

DeleteParameters

获取集合,该集合包含在删除操作过程中所使用的参数。Gets the collection that contains the parameters that are used during a delete operation.

EntityType

获取要用于 CUD 操作的数据对象的类型。Gets the type of the data object to use for CUD operations.

Events

获取数据源视图的事件处理程序委托的列表。Gets a list of event-handler delegates for the data source view.

(继承自 DataSourceView)
GroupBy

获取或设置一个或多个属性名称,用于在选择操作过程中对数据进行分组。Gets or sets the name or names of the properties to use during the select operation for grouping data.

GroupByParameters

获取一个参数集合,其中的参数值用于在选择操作过程中创建 GroupBy 子句。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

获取一个值,该值指示 QueryableDataSourceView 对象是否正将更改保存到其视图状态。Gets a value that indicates whether the QueryableDataSourceView object is saving changes to its view state.

Name

获取数据源视图的名称。Gets the name of the data source view.

(继承自 DataSourceView)
OrderBy

获取或设置一个或多个属性名称,这些属性用于在选择操作过程中对数据进行排序。Gets or sets the name or names of the properties that are used during the select operation to sort data.

OrderByParameters

获取用于在选择操作过程中对数据进行排序的参数的集合。Gets a collection of parameters that are used during the select operation to sort data.

OrderGroupsBy

获取或设置属性的名称,这些属性用于在选择操作过程中对分组的数据进行排序。Gets or sets the names of the properties that are used during the select operation to sort grouped data.

OrderGroupsByParameters

获取用于创建 OrderGroupsBy 子句的参数的集合。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.

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 row to be included in the retrieved data.

WhereParameters

获取用于创建 Where 子句的参数的集合。Gets a collection of parameters that are used to create a Where clause.

方法

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

创建要用于删除操作的对象。Creates the objects to use for the delete operation.

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)

使用数据源的 Select 参数创建一个 Select 查询表达式。Creates a Select query expression by using the select arguments of the data source.

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

通过使用指定值创建要用于更新操作的对象。Creates the objects to use for the update operation by using the specified values.

CanExecute(String)

确定是否能执行指定命令。Determines whether the specified command can be executed.

(继承自 DataSourceView)
ClearOriginalValues()

清除原始值。Clears the original values.

CreateQueryContext(DataSourceSelectArguments)

创建查询上下文对象的实例,该对象包含计算所得的参数集合。Creates an instance of a query context object that contains the evaluated parameter collections.

Delete(IDictionary, IDictionary)

执行删除操作。Performs a delete operation.

Delete(IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步删除操作。Performs an asynchronous delete operation on the list of data that the DataSourceView object represents.

(继承自 DataSourceView)
DeleteObject(Object)

从表中删除数据对象。Deletes a data object from a table.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
ExecuteCommand(String, IDictionary, IDictionary)

执行指定的命令。Executes the specified command.

(继承自 DataSourceView)
ExecuteCommand(String, IDictionary, IDictionary, DataSourceViewOperationCallback)

执行指定的命令。Executes the specified command.

(继承自 DataSourceView)
ExecuteDelete(IDictionary, IDictionary)

通过使用指定值,对 QueryableDataSourceView 对象所表示的数据项执行删除操作。Performs a delete operation on data items that the QueryableDataSourceView object represents by using the specified values.

ExecuteInsert(IDictionary)

通过使用指定值,对 QueryableDataSourceView 对象所表示的数据项执行插入操作。Performs an insert operation on the data items that the QueryableDataSourceView object represents by using the specified value.

ExecutePaging(IQueryable, QueryContext)

使用来自 QueryContext 对象的 QueryableDataSource 对象执行分页。Executes paging by using the QueryContext object from the QueryableDataSource object.

ExecuteQuery(IQueryable, QueryContext)

IQueryable<T> 对象执行查询、排序或分页操作。Performs a query, sort, or paging operation on the IQueryable<T> object.

ExecuteQueryExpressions(IQueryable, QueryContext)

通过使用 IQueryable 对象和 QueryContext 对象执行查询表达式。Executes query expressions by using an IQueryable object and the QueryContext object.

ExecuteSelect(DataSourceSelectArguments)

执行数据检索操作。Performs a data-retrieval operation.

ExecuteSorting(IQueryable, QueryContext)

执行排序操作。Performs a sorting operation.

ExecuteUpdate(IDictionary, IDictionary, IDictionary)

执行更新操作。Performs an update operation.

GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetOriginalValues(IDictionary)

检索在 Select 操作过程中存储的指定键的原始值。Retrieves the original values for the specified keys that were stored during the Select operation.

GetSource(QueryContext)

基于查询上下文获取数据源视图的初始 IQueryable 对象。Gets initial IQueryable object for the data source view based on the query context.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
HandleValidationErrors(IDictionary<String,Exception>, DataSourceOperation)

当 CRUD 操作的数据对象生成过程失败时,由执行 CRUD 操作的方法调用。Called by methods that perform CRUD operations when a CRUD operation fails in the data-object building process.

Insert(IDictionary)

QueryableDataSourceView 对象所表示的数据项执行异步插入操作。Performs an asynchronous insert operation on the data items that the QueryableDataSourceView object represents.

Insert(IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步插入操作。Performs an asynchronous insert operation on the list of data that the DataSourceView object represents.

(继承自 DataSourceView)
InsertObject(Object)

将数据对象插入 QueryableDataSourceView 对象。Inserts data objects into a QueryableDataSourceView object.

LoadViewState(Object)

还原数据源视图的以前保存的视图状态。Restores the previously saved view state for the data source view.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnDataSourceViewChanged(EventArgs)

引发 DataSourceViewChanged 事件。Raises the DataSourceViewChanged event.

(继承自 DataSourceView)
OnQueryCreated(QueryCreatedEventArgs)

QueryCreated 控件创建一个 QueryableDataSource 对象后引发 IQueryable 事件。Raises the QueryCreated event after the QueryableDataSource control has created an IQueryable object.

OnQueryParametersChanged(Object, EventArgs)

调用 RaiseViewChanged() 方法。Calls the RaiseViewChanged() method.

RaiseUnsupportedCapabilityError(DataSourceCapabilities)

RaiseUnsupportedCapabilitiesError(DataSourceView) 方法调用,用于将 ExecuteSelect(DataSourceSelectArguments) 操作所请求的功能与视图所支持的功能进行比较。Called by the RaiseUnsupportedCapabilitiesError(DataSourceView) method to compare the capabilities requested for an ExecuteSelect(DataSourceSelectArguments) operation against those that the view supports.

(继承自 DataSourceView)
RaiseViewChanged()

调用 OnDataSourceViewChanged(EventArgs) 方法。Calls the OnDataSourceViewChanged(EventArgs) method.

SaveViewState()

保存自将页传递到服务器时起 QueryableDataSourceView 对象的视图状态更改。Saves changes to view state for the QueryableDataSourceView object since the time that the page was posted to the server.

Select(DataSourceSelectArguments, DataSourceViewSelectCallback)

从基础数据存储中异步获取数据列表。Gets a list of data asynchronously from the underlying data storage.

(继承自 DataSourceView)
StoreOriginalValues(IList)

将来自 Select 操作的原始值存储在控件的视图状态中。Stores the original values from the Select operation in the control's view state.

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

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
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)

执行更新操作。Performs an update operation.

Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步更新操作。Performs an asynchronous update operation on the list of data that the DataSourceView object represents.

(继承自 DataSourceView)
UpdateObject(Object, Object)

更新数据对象。Updates a data object.

事件

DataSourceViewChanged

在数据源视图更改时发生。Occurs when the data source view has changed.

(继承自 DataSourceView)
QueryCreated

在创建查询时发生。Occurs when a query is created.

显式接口实现

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)

当由类实现时,加载服务器控件以前保存的控件视图状态。When implemented by a class, loads the server control's previously saved view state for the control.

IStateManager.SaveViewState()

当由类实现时,将服务器控件的视图状态更改保存到对象。When implemented by a class, saves the changes to a server control's view state to an object.

IStateManager.TrackViewState()

当由类实现时,获取一个值,该值指示服务器控件是否正在跟踪其视图状态更改。When implemented by a class, gets a value that indicates whether a server control is tracking its view-state changes.

适用于