Share via


DbMigration.MoveTable(String, String, Object) Method

Definition

Adds an operation to move a table to a new schema.

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.

protected internal void MoveTable (string name, string newSchema, object anonymousArguments = null);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected internal void MoveTable (string name, string newSchema, object anonymousArguments = null);
member this.MoveTable : string * string * obj -> unit
Protected Friend Sub MoveTable (name As String, newSchema As String, Optional anonymousArguments As Object = null)

Parameters

name
String

The name of the table to be moved. Schema name is optional, if no schema is specified then dbo is assumed.

newSchema
String

The schema the table is to be moved to.

anonymousArguments
Object

Additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments e.g. 'new { SampleArgument = "MyValue" }'.

Attributes

Applies to