Click or drag to resize

Schema Class

Represents a schema or database.
Inheritance Hierarchy

Namespace:  MySqlX.XDevAPI
Assembly:  MySql.Data (in MySql.Data.dll) Version: 8.0.22
public class Schema : DatabaseObject

The Schema type exposes the following members.

Public propertyName
Gets the database object name.
(Inherited from DatabaseObject.)
Public propertySchema
Gets the schema that owns the database object.
(Inherited from DatabaseObject.)
Public propertySession
Session related to current schema.
Public methodCreateCollection(String, CreateCollectionOptions)
Creates a collection including a schema validation.
Public methodCreateCollection(String, Boolean)
Creates a collection.
Public methodDropCollection
Drops the given collection.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExistsInDatabase
Determines if this schema actually exists.
(Overrides DatabaseObjectExistsInDatabase.)
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 methodGetCollection(String, Boolean)
Gets a collection by name.
Public methodGetCollectionT(String)
Gets a typed collection object. This is useful for using domain objects.
Public methodGetCollectionAsTable
Gets the given collection as a table.
Public methodGetCollections
Returns a list of all collections in this schema.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTable
Gets a table object. Upon return the object may or may not be valid.
Public methodGetTables
Returns a list of all tables in this schema.
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 methodModifyCollection
Modify a collection adding or removing schema validation parameters.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodValidateOpenSession (Inherited from DatabaseObject.)
See Also