Example #1
0
 public void Update_Read()
 {
     Cam_pressure.Read_type();
     FV_presure.Read_type();
     Crio_pressure.Read_type();
     Crio_temperature.Read_type();
     SHV.Read_type();
     Crio.Read_type();
     FVP.Read_type();
     CPV.Read_type();
     BAV_3.Read_type();
     FVV_B.Read_type();
     FVV_S.Read_type();
     Ion.Read_type();
     ELIProcessComplete.Read();
     FB_RRG_1.Read_type();
     FB_RRG_2.Read_type();
     FB_RRG_3.Read_type();
     Pne_press.Read_type();
     Shield_autoOn.Read();
     Cam_Temp.Read_type();
     Crio_Pump_Run.Read();
     Crio_Pump_Turn_off.Read();
     Cam_Prepare.Read();
     Day_End.Read();
     Cam_opened.Read();
     Driver_Run.Read();
     Open_Door.Read();
     Water_Crio.Read();
     HH_pne.Read();
     LL_pne.Read();
     Crio_Power_Failure.Read();
     Qartz_Power_Failure.Read();
     ELI_Power_Failure.Read();
     WaterHeat_Power_Failure.Read();
     FVP_Power_Failure.Read();
     Ion_Power_Failure.Read();
     Indexer_Power_Failure.Read();
     SSP_Power_Failure.Read();
     Heater_Power_Failure.Read();
     ELI_Water_Failure.Read();
     CRIO_Hight_Temp.Read();
 }
Example #2
0
        private static void createFVPTable(MyDBContext context)
        {
            var fvp = context.FVP.Where(x => x.Name == "FVP");

            if (fvp.Count() == 0)
            {
                var enfvp = new FVP
                {
                    Id   = 1,
                    Name = "FVP"
                };
                context.FVP.Add(enfvp);
                context.SaveChanges();
            }
            else
            {
                Console.WriteLine("FVP Table is created");
            }
        }