ScaffoldTableAttribute(Boolean) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化使用該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表設定為 。