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.
Hace 6 años
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.
Hace 6 años
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.