Пример #1
0
        public override void Delete()
        {
            var wirePoints = WirePoint.FindAllByWireId(WireId);

            foreach (var p in wirePoints)
            {
                p.Delete();
            }
            base.Delete();
        }
Пример #2
0
        public override void Delete()
        {
            var wire = Wire.FindOneByTunnelId(TunnelId);

            if (wire != null)
            {
                WirePoint.DeleteAll(WirePoint.FindAllByWireId(wire.WireId).Select(u => u.WirePointId));
                wire.Delete();
            }
            if (WorkingFace != null)
            {
                DayReportJj.DeleteByWorkingFaceId(WorkingFace.WorkingFaceId);
                DayReportHc.DeleteByWorkingFaceId(WorkingFace.WorkingFaceId);
            }
            MineData.DeleteByTunnelId <CoalExistence>(TunnelId);
            MineData.DeleteByTunnelId <GasData>(TunnelId);
            MineData.DeleteByTunnelId <GeologicStructure>(TunnelId);
            MineData.DeleteByTunnelId <Ventilation>(TunnelId);
            MineData.DeleteByTunnelId <Management>(TunnelId);
            base.Delete();
        }