System.ComponentModel.DataAnnotations
4.0.0.0
System.Attribute
System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field | System.AttributeTargets.All, AllowMultiple=false)
Scaffolding is the mechanism for generating web page templates based on database schemas. ASP.NET Dynamic Data uses scaffolding to generate Web-based UI that lets a user to view and update a database. This class uses the property to enable scaffolding in a Dynamic Data Web Site.
Scaffolding enhances ASP.NET page framework by dynamically displaying pages based on the data model with no physical pages required.
Scaffolding provides the following capabilities:
-
Minimal or no code to create a data-driven Web application.
-
Quick development time.
-
Pages that are fully functional and include display, insert, edit, delete, sorting, and paging functionalities.
-
Built-in data validation that is based on the database schema.
-
Filters that are created for each foreign key or Boolean fields.
This class can be used to enable or disable scaffolding of data columns in a data model by applying this attribute to the appropriate data field object in the class that represents the table.
Specifies whether a class or data column uses scaffolding.
Constructor
4.0.0.0
You can set to true for the entire data model to expose all data columns in the database for CRUD (Create, Read, Update and Delete) operations by setting to true in the Global.asax file or expose individual data columns in a data table to CRUD operations by setting to true in the partial class.
Initializes a new instance of using the property.
The value that specifies whether scaffolding is enabled.
Property
4.0.0.0
System.Boolean
To be added.
You can use this property to enable scaffolding in individual data columns in a data model. If you set this property to true in the global.asax file, the entire data model will expose all data columns in the database for CRUD (Create, Read, Update and Delete) operations.
Gets or sets the value that specifies whether scaffolding is enabled.