Creating stored procedure when installing and uninstall stored procedure when plugin in uninstalled

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
I am trying to create procedure within the install method and also uninstall the newly created stored procedure when the plugin is uninstalled.

public void Install()
{
ExecuteSqlCommand("Create Procedure");
}

public void Uninstall()
{
  ExecuteSqlCommand("Check to see if stored procedure exists");
  ExecuteSqlCommand("Drop procedure StoredProcedureName");
}

Getting the following error when installing the plugin: •Setup failed: The method or operation is not implemented.
6 years ago
It should be:


public void Install()
{
  _dbContext.ExecuteSqlCommand("Create Procedure");
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.