Click or drag to resize

BaseSession Class

Represents a base class for a Session.
Inheritance Hierarchy

Namespace:  MySqlX.XDevAPI
Assembly:  MySql.Data (in MySql.Data.dll) Version: 8.0.22
Syntax
public abstract class BaseSession : IDisposable

The BaseSession type exposes the following members.

Properties
  NameDescription
Public propertyDefaultSchema
Gets the default schema provided when creating the session.
Public propertySchema
Gets the currently active schema.
Public propertySettings
Gets the connection settings for this session.
Public propertyUri
Gets the connection uri representation of the connection options provided during the creation of the session.
Top
Methods
  NameDescription
Public methodClose
Closes this session or releases it to the pool.
Public methodCommit
Commits the current transaction.
Public methodCreateSchema
Creates a schema/database with the given name.
Public methodDispose
Disposes the current object. Code added to correctly implement the disposable pattern.
Protected methodDispose(Boolean)
Disposes the current object. Disposes of the managed state if the flag is set to true.
Public methodDropSchema
Drops the database/schema with the given name.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
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 methodGetSchema
Gets the schema with the given name.
Public methodGetSchemas
Gets a list of schemas (or databases) in this session.
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.)
Protected methodParseConnectionData
Parses the connection data.
Public methodReleaseSavepoint
Removes the named savepoint from the set of savepoints within the current transaction.
Public methodRollback
Rolls back the current transaction.
Public methodRollbackTo
Rolls back a transaction to the named savepoint without terminating the transaction.
Public methodSetSavepoint
Sets a transaction savepoint with an autogenerated name.
Public methodSetSavepoint(String)
Sets a named transaction savepoint.
Public methodStartTransaction
Starts a new transaction.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected field_client
Top
See Also