UpdateDatabaseOperation(IList<DbQueryCommandTree>) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 UpdateDatabaseOperation 類別的新執行個體。
Entity Framework 移轉 API 的設計目的不是接受未受信任來源所提供的輸入, (例如應用程式的使用者) 。 如果從這類來源接受輸入,則應該先加以驗證,再傳遞至這些 API 以防止 SQL 插入式攻擊等。
public UpdateDatabaseOperation(System.Collections.Generic.IList<System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree> historyQueryTrees);
new System.Data.Entity.Migrations.Model.UpdateDatabaseOperation : System.Collections.Generic.IList<System.Data.Entity.Core.Common.CommandTrees.DbQueryCommandTree> -> System.Data.Entity.Migrations.Model.UpdateDatabaseOperation
Public Sub New (historyQueryTrees As IList(Of DbQueryCommandTree))
參數
- historyQueryTrees
- IList<DbQueryCommandTree>
用來判斷此移轉是否需要套用至資料庫的查詢。 這可用來產生可在任何版本對資料庫執行的等冪 SQL 腳本。