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