Running database script in PluginManager

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Is there any way so that I can run database script in any methods of PluginManager class. It's in the Nop.Core Project.
7 years ago
I write a sql to check that is the plugin table exist or not here is the code


 var existingTableNames = new List<string>(_dbContext.SqlQuery<string>("SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_type = 'BASE TABLE'"));

            var isTableExist= existingTableNames.FindAll(x=>x=="MyTableName");



May be it can help you.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.