MySqlScript Class

MySQL Connector/Net

MySqlScript Class
Provides a class capable of executing a SQL script containing multiple SQL statements including CREATE PROCEDURE statements that require changing the delimiter
Inheritance Hierarchy
SystemObject  MySql.Data.MySqlClientMySqlScript

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9
Syntax
public class MySqlScript
Public Class MySqlScript
public ref class MySqlScript
type MySqlScript =  class end

The MySqlScript type exposes the following members.

Constructors
  NameDescription
Public methodMySqlScript
Initializes a new instance of the MySqlScript class.
Public methodMySqlScript(String)
Initializes a new instance of the MySqlScript class.
Public methodMySqlScript(MySqlConnection)
Initializes a new instance of the MySqlScript class.
Public methodMySqlScript(MySqlConnection, String)
Initializes a new instance of the MySqlScript class.
Top
Properties
  NameDescription
Public propertyConnection
Gets or sets the connection.
Public propertyDelimiter
Gets or sets the delimiter.
Public propertyQuery
Gets or sets the query.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExecute
Executes this instance.
Public methodExecuteAsync
Async version of Execute
Public methodExecuteAsync(CancellationToken)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
See Also