IManagementDatabase Interface

Represents a management database.
Public Interface IManagementDatabase
This language is not supported or no code example is available.
public interface IManagementDatabase
This language is not supported or no code example is available.
Name Description
Public property CustomTables Gets all custom tables in this database.
Public property Database Gets the name of the current database.
Public property DbConnection Gets the direct access to the database connection.
Public property EstimateTable Gets the main estimate table.
Public property Path Gets the path of the current database.
Top
Methods
 
Name Description
Public method Refresh() Refreshes all properties with the values from the underlying DB.
Public method RunQdvMacro(string, ref MacroExecutionError, IManagementDbCallingContext) Runs a macro in the management DB.
Public method Save() Saves all modified estimates or rows in all tables into the database.
Public method SetMacroButton(int, int, string, string, string, int) Adds / Defines a macro button and places it in the Automation menu.
Top
Remarks
 
A management database consists of several tables (they are represented as tabs in the Management module application). The tables are represented by instances of IManagementDatabaseTable subtypes, i.e. IManagementDatabaseEstimateTable or IManagementDatabaseCustomTable. A management database contains exactly one estimate table and zero or more custom tables. Only one main table is mandatory, it's called Estimate by default. It cannot be deleted, but it can be renamed. All other tables are optional.
Version
 
Available since QDV 7.14.520.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition