UpdateDatabaseOperation(IList<DbQueryCommandTree>) Constructor

Definition

Initializes a new instance of the UpdateDatabaseOperation class.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

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))

Parameters

historyQueryTrees
IList<DbQueryCommandTree>

The queries used to determine if this migration needs to be applied to the database. This is used to generate an idempotent SQL script that can be run against a database at any version.

Applies to