MetaModel Constructor ()

 

Instantiates a new instance of the MetaModel class.

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

public MetaModel()

You typically call the MetaModel constructor in the Application_Start method of the Global.asax file.

The following example shows how to use the MetaModel constructor to perform the following tasks:

MetaModel model = new MetaModel();
model.RegisterContext(typeof(AdventureWorksLTDataContext), 
    new ContextConfiguration() { ScaffoldAllTables = true });

.NET Framework
Available since 3.5
Return to top
Show: