Saxonite
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user