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




  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.




[ScaffoldTable(true)]




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



Step 4: Run The Application




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


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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250