ScaffoldTableAttribute(Boolean) 构造函数

定义

初始化使用该ScaffoldTableAttribute属性的新实例Scaffold

public:
 ScaffoldTableAttribute(bool scaffold);
public ScaffoldTableAttribute(bool scaffold);
new System.ComponentModel.DataAnnotations.ScaffoldTableAttribute : bool -> System.ComponentModel.DataAnnotations.ScaffoldTableAttribute
Public Sub New (scaffold As Boolean)

参数

scaffold
Boolean

指定是否启用基架的值。

注解

可以设置为scaffoldtrue整个数据模型,以便为 CRUD(创建、读取、更新和删除)操作公开数据库中的所有数据表,或者通过将单个表设置为 scaffold 向 CRUD 操作公开各个表true

适用于