Example #1
0
        public void Update(RelayDevice t)
        {
            RelayDevice oldRelayDevice = context.RelayDevices.First(x => x.MaintainedEquipmentId == t.MaintainedEquipmentId);

            UpdateEntityReflection.Update(oldRelayDevice, t);
            context.Entry(oldRelayDevice).State = EntityState.Modified;
        }
Example #2
0
        public void Update(Device t)
        {
            Device oldDevice = Read(t.MaintainedEquipmentId);

            UpdateEntityReflection.Update(oldDevice, t);
            context.Entry(oldDevice).State = EntityState.Modified;
        }
Example #3
0
        public void Update(DistrictElectricalNetwork t)
        {
            DistrictElectricalNetwork oldDistricElectricalNetwork = Read(t.DistrictElectricalNetworkId);

            UpdateEntityReflection.Update(oldDistricElectricalNetwork, t);
            context.Entry(oldDistricElectricalNetwork).State = EntityState.Modified;
        }
Example #4
0
        public void Update(VoltageClass t)
        {
            VoltageClass oldVoltageClass = Read(t.VoltageClassId);

            UpdateEntityReflection.Update(oldVoltageClass, t);
            context.Entry(oldVoltageClass).State = EntityState.Modified;
        }
Example #5
0
        public void Update(TransformerType t)
        {
            TransformerType oldTypeTransformer = Read(t.TransformerTypeId);

            UpdateEntityReflection.Update(oldTypeTransformer, t);
            context.Entry(oldTypeTransformer).State = EntityState.Modified;
        }
        public void Update(Attachment t)
        {
            Attachment oldAttachment = Read(t.AttachmentId);

            UpdateEntityReflection.Update(oldAttachment, t);
            context.Entry(oldAttachment).State = EntityState.Modified;
        }
        public void Update(MaintainedEquipmentByCycle t)
        {
            MaintainedEquipmentByCycle oldMaintainedEquipmentByCycle = Read(t.MaintainedEquipmentId);

            UpdateEntityReflection.Update(oldMaintainedEquipmentByCycle, t);
            context.Entry(oldMaintainedEquipmentByCycle).State = EntityState.Modified;
        }
        public void Update(ElementBase t)
        {
            ElementBase oldElementBase = Read(t.ElementBaseId);

            UpdateEntityReflection.Update(oldElementBase, t);
            context.Entry(oldElementBase).State = EntityState.Modified;
        }
        public void Update(MaintenanceYear t)
        {
            MaintenanceYear oldMaintenanceYear = Read(t.MaintenanceYearId);

            UpdateEntityReflection.Update(oldMaintenanceYear, t);
            context.Entry(oldMaintenanceYear).State = EntityState.Modified;
        }