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















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.




[ScaffoldTable(true)]




[EdmEntityTypeAttribute(NamespaceName = "DynamicDataModel", Name = "Section")]
[Serializable()]
[DataContractAttribute(IsReference = true)]
[ScaffoldTable(true)]
public partial class Section: EntityObject {}



Step 4: Run the application





Click to Enlarge


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

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250