Class DatabaseObject
Represents a database object.
Namespace: MySqlX.XDevAPI
Assembly: MySql.Data.dll
Version: 9.1.0
Syntax
public abstract class DatabaseObject
Properties
Name
Gets the database object name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Schema
Gets the schema that owns the database object.
Declaration
public Schema Schema { get; }
Property Value
Type | Description |
---|---|
Schema |
Session
Gets the session that owns the database object.
Declaration
public BaseSession Session { get; }
Property Value
Type | Description |
---|---|
BaseSession |
Methods
ExistsInDatabase()
Verifies that the database object exists in the database.
Declaration
public abstract bool ExistsInDatabase()
Returns
Type | Description |
---|---|
System.Boolean | True if the object exists in database, false otherwise. |
ValidateOpenSession()
Declaration
protected void ValidateOpenSession()