ScaffoldColumnAttribute.Scaffold 屬性

定義

取得或設定值,這個值指定是否啟用 Scaffolding。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

如果啟用 Scaffolding 則為 true,否則為 falsetrue if scaffolding is enabled; otherwise, false.

備註

您可以使用這個屬性,在資料模型中的個別資料行中啟用樣板。You can use this property to enable scaffolding in individual data columns in a data model. 如果您在 global.asax 檔案中將這個屬性設定為 true ,整個資料模型將會公開資料庫中的所有資料行,以供 CRUD (建立、讀取、更新和刪除) 作業。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.

適用於