This documentation is archived and is not being maintained.

MetaModel::Tables Property

Gets a collection of all the tables that are part of the data model.

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

public:
property ReadOnlyCollection<MetaTable^>^ Tables {
	ReadOnlyCollection<MetaTable^>^ get ();
}

Property Value

Type: System.Collections.ObjectModel::ReadOnlyCollection<MetaTable>
A collection that contains the tables that belong to the data model.

The collection contains all the tables in the data model, which includes the tables that are not visible (are not part of Dynamic Data scaffolding).

Run an online example of this feature.

The following example shows how to use the Tables and VisibleTables properties to perform the following tasks:

  • Get a collection of all the tables in a data model and show them in a GridView control.

  • Get a collection of the visible tables in a data model and show them in a GridView control.

The example consists of a page and its code-behind file.

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

.NET Framework

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: