This commit is contained in:
2021-07-10 14:23:52 +01:00
parent b7ce1cf5f5
commit 2cb58f0345
19 changed files with 203 additions and 161 deletions
@@ -168,7 +168,7 @@ namespace Sarand.Net.Standard.Dbas.Interfaces
}
//-------------------------------------------------------------------
// Delete Interface Process.
// Delete Item.
public override bool InterfaceProcessCanBeDeleted (SaInterfaceProcess interfaceProcess)
{
ClearErrorState();
@@ -236,11 +236,11 @@ namespace Sarand.Net.Standard.Dbas.Interfaces
{
try
{
// Retrieve interface.
// Retrieve item.
dbConnection.Open();
SaInterfaceProcess_Db dbInterfaceProcess = new SaInterfaceProcess_Db_Local(DbInfo);
dbInterfaceProcess.PopulateFrom(dbCommand, aliasInterfaceProcess, "Id=" + SysId.ToString(interfaceProcess.Id));
// Delete interface.
// Delete item.
dbCommand.CommandType = System.Data.CommandType.Text;
dbCommand.CommandText = "DELETE FROM " + TableName_InterfaceProcess + " WHERE Id=" + SysId.ToString(interfaceProcess.Id) + ";";
dbCommand.ExecuteNonQuery();