Class DropSchemaTask
Drops a schema. Use DropIfExists to drop a schema only if it exists. For MySql or MariaDb, use the DropDatabase task instead.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ETLBox.ControlFlow.Tasks
Assembly: ETLBox.dll
Syntax
public sealed class DropSchemaTask : DropTask<IfSchemaExistsTask>, ILoggableTask
Constructors
DropSchemaTask()
Declaration
public DropSchemaTask()
DropSchemaTask(String)
Declaration
public DropSchemaTask(string schemaName)
Parameters
Type | Name | Description |
---|---|---|
System.String | schemaName |
Methods
Drop(IConnectionManager, String)
Drops a schema. For MySql, use the DropDatabase task instead.
Declaration
public static void Drop(IConnectionManager connectionManager, string schemaName)
Parameters
Type | Name | Description |
---|---|---|
IConnectionManager | connectionManager | The connection manager of the database you want to connect |
System.String | schemaName | Name of the schema to drop |
Drop(String)
Drops a schema. For MySql, use the DropDatabase task instead.
Declaration
public static void Drop(string schemaName)
Parameters
Type | Name | Description |
---|---|---|
System.String | schemaName | Name of the schema to drop |
DropIfExists(IConnectionManager, String)
Drops a schema if the schema exists. For MySql, use the DropDatabase task instead.
Declaration
public static void DropIfExists(IConnectionManager connectionManager, string schemaName)
Parameters
Type | Name | Description |
---|---|---|
IConnectionManager | connectionManager | The connection manager of the database you want to connect |
System.String | schemaName | Name of the schema to drop |
DropIfExists(String)
Drops a schema if the schema exists. For MySql, use the DropDatabase task instead.
Declaration
public static void DropIfExists(string schemaName)
Parameters
Type | Name | Description |
---|---|---|
System.String | schemaName | Name of the schema to drop |