ScaffoldColumnAttribute.Scaffold 属性

定义

获取或设置用于指定是否启用基架的值。Gets or sets the value that specifies whether scaffolding is enabled.

public:
 property bool Scaffold { bool get(); };
public bool Scaffold { get; }
member this.Scaffold : bool
Public ReadOnly Property Scaffold As Boolean

属性值

Boolean

如果启用了基架,则为 true;否则为 falsetrue if scaffolding is enabled; otherwise, false.

注解

您可以使用此属性在数据模型中的单个数据列中启用基架。You can use this property to enable scaffolding in individual data columns in a data model. 如果将此属性设置为 true 在 global.asax 文件中,则整个数据模型将公开数据库中的所有数据列, (创建、读取、更新和删除) 操作。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.

适用于