Share via


DbMigration.DropStoredProcedure(String, Object) Method

Definition

Adds an operation to drop an existing stored procedure with the specified name.

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.

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

Parameters

name
String

The name of the procedure to drop. Schema name is optional, if no schema is specified then dbo is assumed.

anonymousArguments
Object

The additional arguments that may be processed by providers. Use anonymous type syntax to specify arguments. For example, 'new { SampleArgument = "MyValue" }'.

Attributes

Applies to