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
@@ -171,11 +171,11 @@ namespace Sarand.Net.Standard.Dbas.Interfaces
{
try
{
// Retrieve interface.
// Retrieve item.
dbConnection.Open();
SaInterface_Db dbInterface = new SaInterface_Db(DbInfo);
dbInterface.PopulateFrom(dbCommand, aliasInterface, "Id=" + SysId.ToString(interfaceObj.Id));
// Update properties.
// Update item.
PopulateTo(dbInterface, interfaceObj, dbUpdateInfo);
dbInterface.ExecuteUpdateCommand(dbCommand);
}
@@ -201,11 +201,11 @@ namespace Sarand.Net.Standard.Dbas.Interfaces
{
try
{
// Retrieve interface.
// Retrieve item.
dbConnection.Open();
SaInterface_Db dbInterface = new SaInterface_Db(DbInfo);
dbInterface.PopulateFrom(dbCommand, aliasInterface, "Id=" + SysId.ToString(interfaceObj.Id));
// Delete interface.
// Delete item.
dbCommand.CommandType = System.Data.CommandType.Text;
dbCommand.CommandText = "DELETE FROM " + TableName_Interface + " WHERE Id=" + SysId.ToString(interfaceObj.Id) + ";";
dbCommand.ExecuteNonQuery();