18 lines
438 B
C#
18 lines
438 B
C#
using InnovEnergy.App.VrmGrabber.DataTypes;
|
|
|
|
|
|
namespace InnovEnergy.App.VrmGrabber.Database;
|
|
|
|
|
|
public static partial class Db
|
|
{
|
|
public static Boolean Delete(Installation installation)
|
|
{
|
|
return RunTransaction(DeleteInstallationAndItsDependencies);
|
|
|
|
Boolean DeleteInstallationAndItsDependencies()
|
|
{
|
|
return Installations.Delete(i => i.Identifier == installation.Identifier) > 0;
|
|
}
|
|
}
|
|
} |