Articles → .NET → View Selective Tables In Asp.Net Dynamic Data
View Selective Tables In Asp.Net Dynamic Data
Objective Of This Tutorial
Prerequisites
Steps Involved
- Create a new project of type ‘ASP.NET Dynamic Entities Web Application’
- Add code to global.asax
- Making changes in the Section class so that it can be displayed
- Run the application
Step 1: Create A New Project Of Type ‘ASP.NET Dynamic Entities Web Application’
Step 2: Add Code To Global.Asax
DefaultModel.RegisterContext(typeof(DynamicDataEntities), new ContextConfiguration() { ScaffoldAllTables = false });
Step 3: Making Changes In The Section Class So That It Can Be Displayed.
[EdmEntityTypeAttribute(NamespaceName = "DynamicDataModel", Name = "Section")]
[Serializable()]
[DataContractAttribute(IsReference = true)]
[ScaffoldTable(true)]
public partial class Section: EntityObject {}
Step 4: Run The Application
Click to Enlarge