EntityTemplateFactory.CreateEntityTemplate Method

Definition

Creates an instance of the entity template for the specified table.

C#
public virtual System.Web.DynamicData.EntityTemplateUserControl CreateEntityTemplate(System.Web.DynamicData.MetaTable table, System.Web.UI.WebControls.DataBoundControlMode mode, string uiHint);

Parameters

table
MetaTable

The metadata for the table to which the entity template applies.

mode
DataBoundControlMode

The display mode of the entity template.

uiHint
String

The name of the template to use.

Returns

An instance of the EntityTemplateUserControl class.

Exceptions

The table is null.

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1