ContextDataSourceView 类

定义

支持 ContextDataSource 控件并提供一个接口,使数据绑定控件可以执行数据操作。Supports the ContextDataSource control and provides an interface for data-bound controls to perform data operations.

public ref class ContextDataSourceView abstract : System::Web::UI::WebControls::QueryableDataSourceView
public abstract class ContextDataSourceView : System.Web.UI.WebControls.QueryableDataSourceView
type ContextDataSourceView = class
    inherit QueryableDataSourceView
Public MustInherit Class ContextDataSourceView
Inherits QueryableDataSourceView
继承
派生

构造函数

ContextDataSourceView(DataSourceControl, String, HttpContext)

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

字段

EventContextCreated

指示事件在创建上下文类型对象的实例之后发生。Indicates that an event occurred after an instance of the context type object was created.

EventContextCreating

指示事件在创建上下文类型对象的实例之前发生。Indicates that an event occurs before an instance of the context type object is created.

EventContextDisposing

指示事件在释放上下文类型对象的实例之前发生。Indicates that an event occurs before an instance of the context type object is disposed.

属性

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.

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

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

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

(继承自 QueryableDataSourceView)
CanDelete

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

(继承自 QueryableDataSourceView)
CanInsert

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

(继承自 QueryableDataSourceView)
CanPage

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

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

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

(继承自 QueryableDataSourceView)
CanUpdate

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

(继承自 QueryableDataSourceView)
Context

获取或设置当前的数据上下文。Gets or sets the current data context.

ContextType

获取数据上下文的类型。Gets the type of the data context.

ContextTypeName

获取或设置数据上下文类的名称,该数据上下文类包含 TableName 属性中指定的字段或属性。Gets or sets the name of the data context class that contains the field or property that is specified in the TableName property.

DeleteParameters

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

(继承自 QueryableDataSourceView)
EntitySet

获取或设置对象,该对象包含要检索的数据的值。Gets or sets the object that contains the value of the data to retrieve.

EntitySetName

获取或设置数据上下文类中的属性或字段的名称,该数据上下文类表示一个数据集合。Gets or sets the name of the property or field in the data-context class that represents a data collection.

EntitySetType

获取或设置为插入、删除或更新操作创建的对象的名称。Gets or sets the name of the object that is created for an insert, delete, or update operation.

EntityType

获取或设置为插入、删除或更新操作创建的对象。Gets or sets the object that is created for an insert, delete, or update operation.

EntityTypeName

获取或设置为插入、删除或更新操作创建的对象的名称。Gets or sets the name of the object that is created for an insert, delete, or update operation.

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.

(继承自 QueryableDataSourceView)
GroupByParameters

获取一个参数集合,其中的参数值用于在选择操作过程中创建 GroupBy 子句。Gets a collection of parameters whose values are used to create the GroupBy clause during the select operation.

(继承自 QueryableDataSourceView)
InsertParameters

获取在插入操作过程中使用的参数的集合。Gets a collection of parameters that are used during the insert operation.

(继承自 QueryableDataSourceView)
IsTrackingViewState

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

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

(继承自 QueryableDataSourceView)
OrderByParameters

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

(继承自 QueryableDataSourceView)
OrderGroupsBy

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

(继承自 QueryableDataSourceView)
OrderGroupsByParameters

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

(继承自 QueryableDataSourceView)
SelectNew

获取或设置属性和计算值,它们包含在检索到的数据中。Gets or sets the properties and calculated values that are included in the retrieved data.

(继承自 QueryableDataSourceView)
SelectNewParameters

获取在数据检索操作过程中使用的参数的集合。Gets the collection of parameters that are used during a data-retrieval operation.

(继承自 QueryableDataSourceView)
UpdateParameters

获取在更新操作过程中使用的参数的集合。Gets the collection of parameters that are used during an update operation.

(继承自 QueryableDataSourceView)
Where

获取或设置一个值,该值指定要将行包含在检索到的数据中所必须满足的条件。Gets or sets a value that specifies what conditions must be true for a row to be included in the retrieved data.

(继承自 QueryableDataSourceView)
WhereParameters

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

(继承自 QueryableDataSourceView)

方法

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

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

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

(继承自 QueryableDataSourceView)
BuildQuery(DataSourceSelectArguments)

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

(继承自 QueryableDataSourceView)
BuildUpdateObjects(IDictionary, IDictionary, IDictionary, IDictionary<String,Exception>)

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

(继承自 QueryableDataSourceView)
CanExecute(String)

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

(继承自 DataSourceView)
ClearOriginalValues()

清除原始值。Clears the original values.

(继承自 QueryableDataSourceView)
CreateContext(DataSourceOperation)

为指定操作创建数据上下文和实体集类型的实例。Creates an instance of the data context and entity-set type for the specified operation.

CreateQueryContext(DataSourceSelectArguments)

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

(继承自 QueryableDataSourceView)
Delete(IDictionary, IDictionary)

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

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

(继承自 QueryableDataSourceView)
DisposeContext()

在执行操作之后释放上下文。Disposes the context after an operation is performed.

DisposeContext(Object)

在执行操作之后释放指定数据上下文。Disposes the specified data context after an operation is performed.

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)

使用指定键并使用用于检测冲突的行值执行删除操作。Performs a delete operation using the specified keys and using row values that are used to detect conflicts.

ExecuteInsert(IDictionary)

通过使用集合中指定的值执行插入操作。Performs an insert operation by using the values specified in a collection.

ExecutePaging(IQueryable, QueryContext)

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

(继承自 QueryableDataSourceView)
ExecuteQuery(IQueryable, QueryContext)

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

(继承自 QueryableDataSourceView)
ExecuteQueryExpressions(IQueryable, QueryContext)

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

(继承自 QueryableDataSourceView)
ExecuteSelect(DataSourceSelectArguments)

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

(继承自 QueryableDataSourceView)
ExecuteSorting(IQueryable, QueryContext)

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

(继承自 QueryableDataSourceView)
ExecuteUpdate(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.

GetDataObjectType(Type)

检索要用于删除、插入和更新操作的数据对象的类型。Retrieves the type of data object to use for the delete, insert, and update operations.

GetEntitySetType()

以属性、字段或数据上下文的形式检索实体集。Retrieves the entity set as a property, field, or data context.

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.

(继承自 QueryableDataSourceView)
GetSource(QueryContext)

检索查询上下文的源。Retrieves the source of 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.

(继承自 QueryableDataSourceView)
Insert(IDictionary)

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

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

(继承自 QueryableDataSourceView)
LoadViewState(Object)

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

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

(继承自 QueryableDataSourceView)
OnQueryParametersChanged(Object, EventArgs)

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

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

(继承自 QueryableDataSourceView)
SaveViewState()

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

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

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

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

(继承自 QueryableDataSourceView)
Update(IDictionary, IDictionary, IDictionary)

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

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

(继承自 QueryableDataSourceView)

事件

DataSourceViewChanged

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

(继承自 DataSourceView)
QueryCreated

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

(继承自 QueryableDataSourceView)

显式接口实现

IStateManager.IsTrackingViewState

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

(继承自 QueryableDataSourceView)
IStateManager.LoadViewState(Object)

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

(继承自 QueryableDataSourceView)
IStateManager.SaveViewState()

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

(继承自 QueryableDataSourceView)
IStateManager.TrackViewState()

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

(继承自 QueryableDataSourceView)

适用于