UpdateDatabaseOperation Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Used when scripting an update database operation to store the operations that would have been performed against the database.
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 class UpdateDatabaseOperation : System.Data.Entity.Migrations.Model.MigrationOperation
type UpdateDatabaseOperation = class
inherit MigrationOperation
Public Class UpdateDatabaseOperation
Inherits MigrationOperation
- Inheritance
Constructors
UpdateDatabaseOperation(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. |
Properties
AnonymousArguments |
Gets additional arguments that may be processed by providers. 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. (Inherited from MigrationOperation) |
HistoryQueryTrees |
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. |
Inverse |
Gets an operation that will revert this operation. (Inherited from MigrationOperation) |
IsDestructiveChange |
Gets a value indicating if any of the operations may result in data loss. |
Migrations |
Gets the migrations applied during the update database operation. |
Methods
AddMigration(String, IList<MigrationOperation>) |
Adds a migration to this update database operation. 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. |
Applies to
Entity Framework