Asp .Net Dynamic Data

0 comments

Asp.Net Dynamic data is a new feature intoduced in .net 3.5 Framework. Its is basically to provide Rapid Application Development (RAD) refers to a type of software development Methodology. Asp.Net Dynamic data is a framework that lets you create data-driven ASP.NET Web applications easily.


Dynamic data Framework inludes the following features.
1. DataModelling
2. Scaffolding
3. Templating
4. Customization


Data Modelling:


It is a method used to define and analyze data requirements needed to support the business porcess of an organization. The data requirements are recorded as a conceptual data model with associated data definitions.


Dynamic Data supports the LINQ-to-SQL data model and the ADO.NET Entity Framework data model. You can include multiple instances of data models in a Web application, but the models that are used in Dynamic Data must be of the same type.


Scaffolding:


Scaffolding is a mechanism that enhances the existing ASP.NET page framework by dynamically displaying pages based on the data model. Scaffolding provides the following capabilities:


1.Minimal or no code to create a data-driven Web application.
2.Quick development time.
3.Built-in data validation based on the database schema.
4.Automatic data selection created for each foreign key or Boolean field.


Templating:


Dynamic data uses templates to provide the Default view of the dataContext with the Scaffolding.


1. Page templates are ASP.NET Web pages that are configured to display data from any table that is available to Dynamic Data.
2. Dynamic Data uses field templates to render the UI for displaying and editing individual data fields. It determines the appropriate field template from the data field types.


The DetailsView and GridView controls have been extended to display fields by using templates instead of by using hard-coded rules that are programmed in the controls.


Customization:


We can customize the templates to change their appearance or to specify which controls they use for rendering. This makes it very easy to make a change in one place in your site that specifies how to present dates for editing, as one example. FormView and ListView controls can implement similar behavior by using a DynamicControl object in their templates and by specifying which field in the row to display. Dynamic Data will then automatically build the UI for these controls based on the templates that you specify.


Validation is significantly improved in the controls as well. For example, if a column in the database is limited to 50 characters, and if a column is marked as not nullable, a RequiredFieldValidator control is automatically enabled for the column.


Such is the flexibility provided by Asp.net dynamic data.. Microsoft is making things very simple.Go get started.

0 comments: