Asp .Net Dynamic Data is a technology used for dynamically generating CRUD forms. It is based on either Entity Framework or Linq to Sql.
Here I am demonstrating Ado .Net Dynamic Data with Entity Framework.
Start a New Web Site in Asp .Net and select Asp .Net Dynamic Entities Web Site.
Add and Ado .Net Entity Data Model as described in the beginning of the blog.
Open Global.asax and navigate to RegisterRoutes event. Uncomment the DefaultModel.RegisterContext and inside the typeof type the name of the Ado .Net Entities you have created and set ScaffoldAllTables attribute to true as shown below.
DefaultModel.RegisterContext(typeof(ContactManagementModel.ContactManagementEntities),
new ContextConfiguration() { ScaffoldAllTables = true });
No comments:
Post a Comment