IDynamicDataSource 介面

定義

表示動態資料控制項的資料來源。

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 子句。

ContextType

取得 DataContext 類別的型別。

EnableDelete

取得或設定值,這個值表示資料來源檢視是否支援刪除資料列。

EnableInsert

取得或設定值,這個值表示資料來源檢視是否支援插入資料列。

EnableUpdate

取得或設定值,這個值表示資料來源檢視是否支援更新資料列。

EntitySetName

取得或設定實體集名稱。

Where

取得或設定代表條件的值,此條件必須為 true,資料錄才會包含在 Where 子句擷取的資料中。

WhereParameters

取得用於建立 Where 子句的參數集合。

方法

GetView(String)

取得與資料來源控制項關聯的具名資料來源檢視。

(繼承來源 IDataSource)
GetViewNames()

取得名稱集合,表示與 IDataSource 介面關聯的檢視物件清單。

(繼承來源 IDataSource)

事件

DataSourceChanged

當資料來源控制項變更而影響資料繫結控制項時發生。

(繼承來源 IDataSource)
Exception

資料欄位無法驗證時發生。

擴充方法

ExpandDynamicWhereParameters(IDynamicDataSource)

將動態篩選條件擴大成資料來源可用的 Where 參數。

GetDefaultValues(IDataSource)

取得所指定資料來源的預設值集合。

GetMetaTable(IDataSource)

取得所指定資料來源物件中的資料表中繼資料。

GetTable(IDynamicDataSource)

傳回與指定之資料來源控制項相關聯的 MetaTable 物件。

TryGetMetaTable(IDataSource, MetaTable)

判斷資料表中繼資料是否可供使用。

適用於