/*==================================================================================================================================
        * Public Methods
        *=================================================================================================================================*/

        #region Identifer-based Usage
        //
        // Identifer-based Usage
        //
        public questStatus Create(Quest.Functional.MasterPricing.Database database, out DatabaseId databaseId)
        {
            // Initialize
            questStatus status = null;

            databaseId = null;


            // Create the database
            DatabasesMgr databasesMgr = new DatabasesMgr(this.UserSession);

            status = databasesMgr.Create(database, out databaseId);
            if (!questStatusDef.IsSuccess(status))
            {
                return(status);
            }

            // Populate the database metadata
            status = RefreshSchema(databaseId);
            if (!questStatusDef.IsSuccess(status))
            {
                return(status);
            }
            return(new questStatus(Severity.Success));
        }
        public questStatus Update(Quest.Functional.MasterPricing.Database database, bool bRefreshSchema = false)
        {
            // Initialize
            questStatus status = null;


            // Update the database
            DatabasesMgr databasesMgr = new DatabasesMgr(this.UserSession);

            status = databasesMgr.Update(database);
            if (!questStatusDef.IsSuccess(status))
            {
                return(status);
            }

            // Populate the database metadata
            if (bRefreshSchema)
            {
                status = RefreshSchema(database);
                if (!questStatusDef.IsSuccess(status))
                {
                    return(status);
                }
            }
            return(new questStatus(Severity.Success));
        }