Example #1
0
        public void UpdateDatabase()
        {
            try {
                _schemaCommandGenerator.UpdateDatabase();
            }
            catch (Exception ex) {
                throw new OrchardException(T("An error occurred while updating the database."), ex);
            }

            Context.Output.WriteLine(T("Database updated"));
        }