IDynamicDataSource 接口

定义

表示动态数据控件的数据源。Represents a data source for a Dynamic Data control.

public interface class IDynamicDataSource : System::Web::UI::IDataSource
public interface IDynamicDataSource : System.Web.UI.IDataSource
type IDynamicDataSource = interface
    interface IDataSource
Public Interface IDynamicDataSource
Implements IDataSource
派生
实现

属性

AutoGenerateWhereClause

获取或设置一个值,该值指示 IDynamicDataSource 控件是否基于 WhereParameters 集合中定义的值来动态创建 Where 子句。Gets or sets a value that indicates whether the IDynamicDataSource control dynamically creates a Where clause based on values defined in the WhereParameters collection.

ContextType

获取 DataContext 类的类型。Gets the type of the DataContext class.

EnableDelete

获取或设置一个值,该值指示数据源视图是否支持删除行。Gets or sets a value that indicates whether the data source view supports the ability to delete rows.

EnableInsert

获取或设置一个值,该值指示数据源视图是否支持插入行。Gets or sets a value that indicates whether the data source view supports the ability to insert rows.

EnableUpdate

获取或设置一个值,该值指示数据源视图是否支持更新行。Gets or sets a value that indicates whether the data source view supports the ability to update rows.

EntitySetName

获取或设置实体集名称。Gets or sets the entity set name.

Where

获取或设置一个值,该值指定对于以下情况必须为真的条件:即要将记录包含在 Where 子句检索到的数据中。Gets or sets a value that specifies the condition that must be true for a record to be included in the retrieved data by a Where clause.

WhereParameters

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

方法

GetView(String)

获取与数据源控件关联的指定数据源视图。Gets the named data source view associated with the data source control.

(继承自 IDataSource)
GetViewNames()

获取名称的集合,表示与 IDataSource 接口关联的视图对象的列表。Gets a collection of names representing the list of view objects associated with the IDataSource interface.

(继承自 IDataSource)

事件

DataSourceChanged

数据源控件以某种影响数据绑定控件的方式发生变化时发生。Occurs when a data source control has changed in some way that affects data-bound controls.

(继承自 IDataSource)
Exception

当数据字段未能验证时发生。Occurs when a data field fails to validate.

扩展方法

ExpandDynamicWhereParameters(IDynamicDataSource)

将动态筛选器扩展到可供数据源使用的 Where 参数中。Expands dynamic filters into Where parameters that are usable by the data source.

GetDefaultValues(IDataSource)

为指定数据源获取默认值的集合。Gets the collection of the default values for the specified data source.

GetMetaTable(IDataSource)

获取指定数据源对象中表的元数据。Gets the metadata for a table in the specified data source object.

GetTable(IDynamicDataSource)

返回与指定数据源控件关联的 MetaTable 对象。Returns the MetaTable object that is associated with the specified data source control.

TryGetMetaTable(IDataSource, MetaTable)

确定表元数据是否可用。Determines whether table metadata is available.

适用于