Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TableNameAttribute Constructor (String^)

 

Initializes a new instance of the TableNameAttribute class with the specified name for the table.

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

public:
TableNameAttribute(
	String^ name
)

Parameters

name
Type: System::String^

The name that the table will display.

The TableNameAttribute attribute is used to change the entity name in the metadata when there are entity name conflicts from multiple contexts. The TableNameAttribute attribute should not be used to change the display name. Instead, use the DisplayNameAttribute attribute to change the display name.

The following example shows how to set the table name. In the example, the displayed table name is changed from "ProductModelProductDescriptions" to "Prod Model Desc".

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft