DynamicDataExtensions DynamicDataExtensions DynamicDataExtensions DynamicDataExtensions Class

定義

提供 ASP.NET Dynamic Data 所使用的擴充方法。Provides extension methods that are used by ASP.NET Dynamic Data.

public ref class DynamicDataExtensions abstract sealed
public static class DynamicDataExtensions
type DynamicDataExtensions = class
Public Module DynamicDataExtensions
繼承
DynamicDataExtensionsDynamicDataExtensionsDynamicDataExtensionsDynamicDataExtensions

方法

ConvertEditedValue(IFieldFormattingOptions, String) ConvertEditedValue(IFieldFormattingOptions, String) ConvertEditedValue(IFieldFormattingOptions, String) ConvertEditedValue(IFieldFormattingOptions, String)

針對已驗證的控制項傳回使用者提供的值。Returns the value provided by a user for a control that is being validated.

EnablePersistedSelection(BaseDataBoundControl) EnablePersistedSelection(BaseDataBoundControl) EnablePersistedSelection(BaseDataBoundControl) EnablePersistedSelection(BaseDataBoundControl)

啟用要保存於資料控制項中且支援選取和分頁的選項。Enables selection to be persisted in data controls that support selection and paging.

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

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

FindDataSourceControl(Control) FindDataSourceControl(Control) FindDataSourceControl(Control) FindDataSourceControl(Control)

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

FindFieldTemplate(Control, String) FindFieldTemplate(Control, String) FindFieldTemplate(Control, String) FindFieldTemplate(Control, String)

傳回在指定之控制項的命名容器中所指定資料行的欄位樣板。Returns the field template for the specified column in the specified control's naming container.

FindMetaTable(Control) FindMetaTable(Control) FindMetaTable(Control) FindMetaTable(Control)

傳回包含資料控制項的中繼資料表物件。Returns the metatable object for the containing data control.

FormatEditValue(IFieldFormattingOptions, Object) FormatEditValue(IFieldFormattingOptions, Object) FormatEditValue(IFieldFormattingOptions, Object) FormatEditValue(IFieldFormattingOptions, Object)

以指定的格式化選項來進行格式化指定的欄位值。Formats the specified field value by using the specified formatting options.

FormatValue(IFieldFormattingOptions, Object) FormatValue(IFieldFormattingOptions, Object) FormatValue(IFieldFormattingOptions, Object) FormatValue(IFieldFormattingOptions, Object)

以指定的格式化選項來進行格式化指定的欄位值。Formats the specified field value by using the specified formatting options.

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

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

GetDefaultValues(INamingContainer) GetDefaultValues(INamingContainer) GetDefaultValues(INamingContainer) GetDefaultValues(INamingContainer)

取得所指定資料控制項的預設值集合。Gets the collection of the default values for the specified data control.

GetEnumType(MetaColumn) GetEnumType(MetaColumn) GetEnumType(MetaColumn) GetEnumType(MetaColumn)

取得表示資料行的列舉型別。Gets the type of the enumeration that represents the column.

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

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

GetMetaTable(INamingContainer) GetMetaTable(INamingContainer) GetMetaTable(INamingContainer) GetMetaTable(INamingContainer)

取得所指定資料控制項中的資料表中繼資料。Gets the table metadata for the specified data control.

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

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

LoadWith<TEntity>(LinqDataSource) LoadWith<TEntity>(LinqDataSource) LoadWith<TEntity>(LinqDataSource) LoadWith<TEntity>(LinqDataSource)

設定 LINQ-to-SQL 的 DataLoadOptions 值,以強制載入所有外部索引鍵實體 (Entity)。Sets the DataLoadOptions value of a LINQ-to-SQL data source to force all the foreign-key entities to be loaded.

LoadWithForeignKeys(LinqDataSource, Type) LoadWithForeignKeys(LinqDataSource, Type) LoadWithForeignKeys(LinqDataSource, Type) LoadWithForeignKeys(LinqDataSource, Type)

設定 LINQ-to-SQL 的 DataLoadOptions 值,以強制載入所有外部索引鍵實體 (Entity)。Sets the DataLoadOptions value of a LINQ-to-SQL data source to force all the foreign-key entities to be loaded.

SetMetaTable(INamingContainer, MetaTable) SetMetaTable(INamingContainer, MetaTable) SetMetaTable(INamingContainer, MetaTable) SetMetaTable(INamingContainer, MetaTable)

設定所指定資料控制項中的資料表中繼資料。Sets the table metadata for the specified data control.

SetMetaTable(INamingContainer, MetaTable, IDictionary<String,Object>) SetMetaTable(INamingContainer, MetaTable, IDictionary<String,Object>) SetMetaTable(INamingContainer, MetaTable, IDictionary<String,Object>) SetMetaTable(INamingContainer, MetaTable, IDictionary<String,Object>)

設定所指定資料控制項的資料表中繼資料及預設值對應。Sets the table metadata and default value mapping for the specified data control.

SetMetaTable(INamingContainer, MetaTable, Object) SetMetaTable(INamingContainer, MetaTable, Object) SetMetaTable(INamingContainer, MetaTable, Object) SetMetaTable(INamingContainer, MetaTable, Object)

設定所指定資料控制項的資料表中繼資料及預設值對應。Sets the table metadata and default value mapping for the specified data control.

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

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

TryGetMetaTable(INamingContainer, MetaTable) TryGetMetaTable(INamingContainer, MetaTable) TryGetMetaTable(INamingContainer, MetaTable) TryGetMetaTable(INamingContainer, MetaTable)

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

適用於

另請參閱