IDynamicDataSource IDynamicDataSource IDynamicDataSource IDynamicDataSource Interface

定義

表示動態資料控制項的資料來源。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 AutoGenerateWhereClause AutoGenerateWhereClause 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 ContextType ContextType ContextType

取得 DataContext 類別的型別。Gets the type of the DataContext class.

EnableDelete EnableDelete EnableDelete EnableDelete

取得或設定值,這個值表示資料來源檢視是否支援刪除資料列。Gets or sets a value that indicates whether the data source view supports the ability to delete rows.

EnableInsert EnableInsert EnableInsert EnableInsert

取得或設定值,這個值表示資料來源檢視是否支援插入資料列。Gets or sets a value that indicates whether the data source view supports the ability to insert rows.

EnableUpdate EnableUpdate EnableUpdate EnableUpdate

取得或設定值,這個值表示資料來源檢視是否支援更新資料列。Gets or sets a value that indicates whether the data source view supports the ability to update rows.

EntitySetName EntitySetName EntitySetName EntitySetName

取得或設定實體集名稱。Gets or sets the entity set name.

Where Where Where Where

取得或設定代表條件的值,此條件必須為 true,資料錄才會包含在 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 WhereParameters WhereParameters WhereParameters

取得用於建立 Where 子句的參數集合。Gets a collection of parameters that are used to create a Where clause.

事件

DataSourceChanged DataSourceChanged DataSourceChanged DataSourceChanged

當資料來源控制項變更而影響資料繫結控制項時發生。Occurs when a data source control has changed in some way that affects data-bound controls.

(Inherited from IDataSource)
Exception Exception Exception Exception

資料欄位無法驗證時發生。Occurs when a data field fails to validate.

方法

GetView(String) GetView(String) GetView(String) GetView(String)

取得與資料來源控制項關聯的具名資料來源檢視。Gets the named data source view associated with the data source control.

(Inherited from IDataSource)
GetViewNames() GetViewNames() GetViewNames() GetViewNames()

取得名稱集合,表示與 IDataSource 介面關聯的檢視物件清單。Gets a collection of names representing the list of view objects associated with the IDataSource interface.

(Inherited from IDataSource)

擴充方法

ExpandDynamicWhereParameters(IDynamicDataSource) ExpandDynamicWhereParameters(IDynamicDataSource) ExpandDynamicWhereParameters(IDynamicDataSource) ExpandDynamicWhereParameters(IDynamicDataSource)

將動態篩選條件擴大成資料來源可用的 Where 參數。Expands dynamic filters into Where parameters that are usable by the data source.

GetDefaultValues(IDataSource) GetDefaultValues(IDataSource) GetDefaultValues(IDataSource) GetDefaultValues(IDataSource)

取得所指定資料來源的預設值集合。Gets the collection of the default values for the specified data source.

GetMetaTable(IDataSource) GetMetaTable(IDataSource) GetMetaTable(IDataSource) GetMetaTable(IDataSource)

取得所指定資料來源物件中的資料表中繼資料。Gets the metadata for a table in the specified data source object.

GetTable(IDynamicDataSource) GetTable(IDynamicDataSource) GetTable(IDynamicDataSource) GetTable(IDynamicDataSource)

傳回與指定之資料來源控制項相關聯的 MetaTable 物件。Returns the MetaTable object that is associated with the specified data source control.

TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable) TryGetMetaTable(IDataSource, MetaTable)

判斷資料表中繼資料是否可供使用。Determines whether table metadata is available.

適用於