MetaModel.GetTable Method (Type)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns the metadata that describes the specified table.

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

public MetaTable GetTable(
	Type entityType


Type: System.Type

The type that identifies the table in the data model.

Return Value

Type: System.Web.DynamicData.MetaTable

The metadata that describes the specified table.

Exception Condition

The type was not found in the data model.

The following example shows how to use the GetTable(Type) method to obtain the metadata for the specified table. For a complete example, see GetTable.

// Get the metatable for the table with the
// specified entity type.
mTable = model.GetTable(typeof(CustomerAddress));

.NET Framework
Available since 3.5
Return to top