Cleanup finale aree #if false
This commit is contained in:
@@ -10,9 +10,6 @@ namespace EgtBEAMWALL.DataLayer.Controllers
|
||||
{
|
||||
#region Private Fields
|
||||
|
||||
#if false
|
||||
private DatabaseContext localDbCtx;
|
||||
#endif
|
||||
|
||||
#endregion Private Fields
|
||||
|
||||
@@ -20,10 +17,6 @@ namespace EgtBEAMWALL.DataLayer.Controllers
|
||||
|
||||
public LogSupportController()
|
||||
{
|
||||
#if false
|
||||
// Initialize database context
|
||||
localDbCtx = new DatabaseContext(DbConfig.CONNECTION_STRING);
|
||||
#endif
|
||||
}
|
||||
|
||||
#endregion Public Constructors
|
||||
@@ -56,9 +49,6 @@ namespace EgtBEAMWALL.DataLayer.Controllers
|
||||
localDbCtx.LogSupportList.Add(newItem);
|
||||
// Commit changes
|
||||
localDbCtx.SaveChanges();
|
||||
#if false
|
||||
ResetController();
|
||||
#endif
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
@@ -90,9 +80,6 @@ namespace EgtBEAMWALL.DataLayer.Controllers
|
||||
localDbCtx.LogSupportList.RemoveRange(items2del);
|
||||
// Commit changes
|
||||
localDbCtx.SaveChanges();
|
||||
#if false
|
||||
ResetController();
|
||||
#endif
|
||||
done = true;
|
||||
}
|
||||
catch (Exception exc)
|
||||
@@ -105,10 +92,6 @@ namespace EgtBEAMWALL.DataLayer.Controllers
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
#if false
|
||||
// Clear database context
|
||||
localDbCtx.Dispose();
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -165,17 +148,6 @@ namespace EgtBEAMWALL.DataLayer.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
/// Reinizializzaizone del controller
|
||||
/// </summary>
|
||||
public void ResetController()
|
||||
{
|
||||
// Re-Initialize database context
|
||||
localDbCtx = new DatabaseContext(DbConfig.CONNECTION_STRING);
|
||||
}
|
||||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Update single LogMachineModel
|
||||
/// </summary>
|
||||
@@ -197,9 +169,6 @@ namespace EgtBEAMWALL.DataLayer.Controllers
|
||||
|
||||
// Commit changes
|
||||
localDbCtx.SaveChanges();
|
||||
#if false
|
||||
ResetController();
|
||||
#endif
|
||||
done = true;
|
||||
}
|
||||
catch (Exception exc)
|
||||
|
||||
Reference in New Issue
Block a user