Articles → .NET → View Selective Tables In Asp.Net Dynamic Data

View Selective Tables In Asp.Net Dynamic Data

Objective Of This Tutorial


Steps Involved

  1. Create a new project of type ‘ASP.NET Dynamic Entities Web Application’
  2. Add code to global.asax
  3. Making changes in the Section class so that it can be displayed
  4. 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")]
[DataContractAttribute(IsReference = true)]
public partial class Section: EntityObject {}

Step 4: Run The Application

Picture showing the output of Viewing selective tables in dynamic data
Click to Enlarge

Posted By  -  Karan Gupta
Posted On  -  Tuesday, April 1, 2014


Your Email Id  
Query/FeedbackCharacters remaining 250