EntityTemplateFactory EntityTemplateFactory EntityTemplateFactory EntityTemplateFactory Class

定義

建立實體範本。Creates an entity template.

public ref class EntityTemplateFactory
public class EntityTemplateFactory
type EntityTemplateFactory = class
Public Class EntityTemplateFactory
繼承
EntityTemplateFactoryEntityTemplateFactoryEntityTemplateFactoryEntityTemplateFactory

範例

如需如何使用實體範本的範例, 請參閱逐步解說:使用實體範本自訂資料表版面配置。For an example of how to use entity templates, see Walkthrough: Customizing Table Layout Using Entity Templates.

備註

在執行時間會使用類別來取得資料表之實體範本的實例,以動態資料。EntityTemplateFactoryThe EntityTemplateFactory class is used at run time by Dynamic Data to get an instance of an entity template for a table. 實體範本是套用到整個資料表資料列的使用者控制項, 而不是單一資料欄位, 如同欄位範本。Entity templates are user controls that apply to a whole table row instead of a single data field, as with field templates. 實體範本會使用DynamicEntity類別顯示在頁面上。The entity templates are displayed on a page by using the DynamicEntity class. 它們會使用欄位範本來顯示資料模型中的值。They use field templates to display values from the data model.

動態資料提供在 ~ \DynamicData\EntityTemplates 資料夾中找到的預設實體範本。Dynamic Data provides default entity templates that are found in the ~\DynamicData\EntityTemplates folder. 您可以修改這些預設實體樣板, 或建立自訂範本來變更資料表的外觀和行為。You can modify these default entity templates or create custom ones to change the appearance and behavior for a table. 有一些範本可用於顯示、編輯和插入作業。There are templates for display, edit, and insert operations.

建構函式

EntityTemplateFactory() EntityTemplateFactory() EntityTemplateFactory() EntityTemplateFactory()

初始化 EntityTemplateFactory 類別的新執行個體。Initializes a new instance of the EntityTemplateFactory class.

方法

BuildEntityTemplateVirtualPath(String, DataBoundControlMode) BuildEntityTemplateVirtualPath(String, DataBoundControlMode) BuildEntityTemplateVirtualPath(String, DataBoundControlMode) BuildEntityTemplateVirtualPath(String, DataBoundControlMode)

建置所指定資料表的實體範本路徑。Builds the path of the entity template for the specified table.

CreateEntityTemplate(MetaTable, DataBoundControlMode, String) CreateEntityTemplate(MetaTable, DataBoundControlMode, String) CreateEntityTemplate(MetaTable, DataBoundControlMode, String) CreateEntityTemplate(MetaTable, DataBoundControlMode, String)

建立所指定資料表的實體範本執行個體。Creates an instance of the entity template for the specified table.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEntityTemplateVirtualPath(MetaTable, DataBoundControlMode, String) GetEntityTemplateVirtualPath(MetaTable, DataBoundControlMode, String) GetEntityTemplateVirtualPath(MetaTable, DataBoundControlMode, String) GetEntityTemplateVirtualPath(MetaTable, DataBoundControlMode, String)

取得所指定資料表的實體範本虛擬路徑。Gets the virtual path of the entity template for the specified table.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於

另請參閱