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

指定是否啟用鷹架的值。

備註

你可以將整個資料模型設定 scaffold 為 , true 讓資料庫中所有資料表暴露給 CRUD(建立、讀取、更新和刪除)操作,或是將 scaffold 個別資料 true表設定為 。

適用於