EntityDataSourceView 类

定义

支持 EntityDataSource 控件并为数据绑定控件提供一个接口,以便对实体数据执行查询和其他操作。

public ref class EntityDataSourceView sealed : System::Web::UI::DataSourceView, System::Web::UI::IStateManager
public ref class EntityDataSourceView : System::Web::UI::DataSourceView, System::Web::UI::IStateManager
public sealed class EntityDataSourceView : System.Web.UI.DataSourceView, System.Web.UI.IStateManager
public class EntityDataSourceView : System.Web.UI.DataSourceView, System.Web.UI.IStateManager
type EntityDataSourceView = class
    inherit DataSourceView
    interface IStateManager
Public NotInheritable Class EntityDataSourceView
Inherits DataSourceView
Implements IStateManager
Public Class EntityDataSourceView
Inherits DataSourceView
Implements IStateManager
继承
EntityDataSourceView
实现

构造函数

EntityDataSourceView(EntityDataSource, String)

初始化 EntityDataSourceView 类的新实例,将指定的 EntityDataSource 控件设置为当前视图的所有者。

属性

CanDelete

获取一个值,该值指示与当前 EntityDataSourceView 控件关联的 EntityDataSource 对象是否支持删除操作。

CanInsert

获取一个值,该值指示与当前 EntityDataSourceView 控件关联的 EntityDataSource 对象是否支持插入操作。

CanPage

获取一个值,该值指示与当前 EntityDataSource 控件相关联的 EntityDataSourceView 对象是否支持对检索数据进行分页。

CanRetrieveTotalRowCount

获取一个值,该值指示与当前 EntityDataSource 控件相关联的EntityDataSourceView 对象除支持检索数据外,是否还支持检索数据行的总数。

CanSort

获取一个值,该值指示与当前 EntityDataSource 控件相关联的 EntityDataSourceView 对象是否支持对检索数据的排序视图。

CanUpdate

获取一个值,该值指示与当前 EntityDataSourceView 控件关联的 EntityDataSource 对象是否支持更新操作。

Events

获取数据源视图的事件处理程序委托的列表。

(继承自 DataSourceView)
Name

获取数据源视图的名称。

(继承自 DataSourceView)

方法

CanExecute(String)

确定是否能执行指定命令。

(继承自 DataSourceView)
Delete(IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步删除操作。

(继承自 DataSourceView)
Equals(Object)

确定指定对象是否等于当前对象。

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

执行指定的命令。

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

执行指定的命令。

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

执行删除操作。

ExecuteDelete(IDictionary, IDictionary)

DataSourceView 对象所表示的数据列表执行删除操作。

(继承自 DataSourceView)
ExecuteInsert(IDictionary)

执行插入操作。

ExecuteInsert(IDictionary)

DataSourceView 对象所表示的数据列表执行插入操作。

(继承自 DataSourceView)
ExecuteSelect(DataSourceSelectArguments)

执行选择操作。

ExecuteSelect(DataSourceSelectArguments)

从基础数据存储获取数据列表。

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

执行更新操作。

ExecuteUpdate(IDictionary, IDictionary, IDictionary)

DataSourceView 对象所表示的数据列表执行更新操作。

(继承自 DataSourceView)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
GetViewSchema()

返回表示 EntityDataSourceView 的表。

Insert(IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步插入操作。

(继承自 DataSourceView)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
OnDataSourceViewChanged(EventArgs)

引发 DataSourceViewChanged 事件。

(继承自 DataSourceView)
RaiseUnsupportedCapabilityError(DataSourceCapabilities)

RaiseUnsupportedCapabilitiesError(DataSourceView) 方法调用,用于将 ExecuteSelect(DataSourceSelectArguments) 操作所请求的功能与视图所支持的功能进行比较。

(继承自 DataSourceView)
Select(DataSourceSelectArguments, DataSourceViewSelectCallback)

从基础数据存储中异步获取数据列表。

(继承自 DataSourceView)
ToString()

返回表示当前对象的字符串。

(继承自 Object)
Update(IDictionary, IDictionary, IDictionary, DataSourceViewOperationCallback)

DataSourceView 对象所表示的数据列表执行异步更新操作。

(继承自 DataSourceView)

事件

ContextCreated

EntityDataSourceView 完成创建用于将数据绑定到控件的 ObjectContext 时发生。

ContextCreating

EntityDataSourceView 创建数据绑定中使用的 ObjectContext 时发生。

ContextDisposing

在释放 ObjectContext 之前发生。

DataSourceViewChanged

在数据源视图更改时发生。

(继承自 DataSourceView)
Deleted

在从数据源中删除对象之后发生。

Deleting

在从数据源中删除对象之前发生。

Exception

在分部方法中验证失败或引发异常时发生。

Inserted

在数据源中创建新对象之后发生。

Inserting

在将新对象保留到数据源之前发生。

QueryCreated

出现在 EntityDataSource 创建配置 EntityDataSource 控件过程中指定的 Entity SQL 查询后。

Selected

在执行查询之后发生。

Selecting

在构建并执行查询之前发生。

Updated

在将对象更改保留到数据源之后发生。

Updating

在将对象更改保留到数据源之前发生。

显式接口实现

IStateManager.IsTrackingViewState

获取一个值,该值指示 EntityDataSourceView 对象是否正将更改保存到其视图状态。

IStateManager.LoadViewState(Object)

还原数据源视图的以前保存的视图状态。

IStateManager.SaveViewState()

保存自页回发到服务器后 EntityDataSourceView 控件的视图状态更改。

IStateManager.TrackViewState()

跟踪视图状态更改。

适用于