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
@@ -235,7 +235,7 @@ namespace Sarand.Net.Standard.Dbas.UpdateLog
}
//-------------------------------------------------------------------
// Insert UpdateLog.
// Insert item.
public override bool InsertLogEntry (SaUpdateLogEntry logEntry, DbUpdateInfo dbUpdateInfo)
{
ClearErrorState();
@@ -263,7 +263,7 @@ namespace Sarand.Net.Standard.Dbas.UpdateLog
}
//-------------------------------------------------------------------
// Update UpdateLog.
// Update item.
public override bool UpdateLogEntry (SaUpdateLogEntry logEntry, DbUpdateInfo dbUpdateInfo)
{
ClearErrorState();
@@ -274,11 +274,11 @@ namespace Sarand.Net.Standard.Dbas.UpdateLog
{
try
{
// Retrieve logEntry.
// Retrieve item.
dbConnection.Open();
SaAttrUpdate_Db dbUpdateLog = new SaAttrUpdate_Db(DbInfo);
dbUpdateLog.PopulateFrom(dbCommand, aliasUpdateLog, GetUpdateLogEntryFilter(logEntry));
// Update properties.
// Update item.
PopulateTo(dbUpdateLog, logEntry, dbUpdateInfo);
dbUpdateLog.ExecuteUpdateCommand(dbCommand);
}
@@ -288,7 +288,7 @@ namespace Sarand.Net.Standard.Dbas.UpdateLog
}
//-------------------------------------------------------------------
// Delete UpdateLog.
// Delete item.
public override bool LogEntryCanBeDeleted (SaUpdateLogEntry logEntry)
{
ClearErrorState();
@@ -304,11 +304,11 @@ namespace Sarand.Net.Standard.Dbas.UpdateLog
{
try
{
// Retrieve logEntry.
// Retrieve item.
dbConnection.Open();
SaAttrUpdate_Db dbUpdateLog = new SaAttrUpdate_Db(DbInfo);
dbUpdateLog.PopulateFrom(dbCommand, aliasUpdateLog, GetUpdateLogEntryFilter(logEntry));
// Delete logEntry.
// Delete item.
dbCommand.CommandType = System.Data.CommandType.Text;
dbCommand.CommandText = "DELETE FROM " + SaUpdateLogDbDfn.GetTableName(SaUpdateLogDbDfn.TableIdx.SaAttrUpdate) + " WHERE " + GetUpdateLogEntryFilter(logEntry) + ";";
dbCommand.ExecuteNonQuery();