UpdateDatabaseOperation Constructor (IList<DbQueryCommandTree>)

 

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.

Namespace:   System.Data.Entity.Migrations.Model
Assembly:  EntityFramework (in EntityFramework.dll)

public UpdateDatabaseOperation(
	IList<DbQueryCommandTree> historyQueryTrees
)

Parameters

historyQueryTrees
Type: System.Collections.Generic.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.