Exemple #1
0
        public async Task Delete(Contracts.Entities.Item e)
        {
            e.ItemProperties = null;
            Uow.MarkDeleted(e);
            await Task.FromResult(0);

            // Uow.ExecuteSqlCommand("delete from ItemProperty where ItemID = " + e.ItemID); => delete cascade
        }
Exemple #2
0
        public async Task Delete(Contracts.Entities.Machine m)
        {
            m.MachineCommands     = null;
            m.MachineInitCommands = null;
            Uow.MarkDeleted(m);
            await Task.FromResult(0);

            //Uow.ExecuteSqlCommand("delete from MachineCommand where MachineID = " + m.MachineID); => delete cascade
            //Uow.ExecuteSqlCommand("delete from MachineInitCommand where MachineID = " + m.MachineID); => delete cascade
        }
 public async Task Delete(Contracts.Entities.Configuration configuration)
 {
     Uow.MarkDeleted(configuration);
     await Task.FromResult(0);
 }
Exemple #4
0
 public async Task Delete(Contracts.Entities.User user)
 {
     Uow.MarkDeleted(user);
     await Task.FromResult(0);
 }