Esempio n. 1
0
 [TestMethod]//CLICK DERECHO a TestMethod y luego Debug Tests
 public void FillLocalSqlServerDataBase()
 {
     try
     {
         using (var context = new TseActasPresidenteDbContext())
         {
             var service = new TseApiToLocalDbContext(context);
             service.InsertTseApiToLocalDataBase();
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                using (var context = new TseActasPresidenteDbContext())
                {
                    var service = new TseApiToLocalDbContext(context);
                    while (label2.Text != "18128")
                    {
                        label2.Text = service.ActasGuardadas.ToString();
                        service.InsertTseApiToLocalDataBase(Convert.ToInt32(label2.Text));
                    }

                    MessageBox.Show("Actas guardadas a la base de datos. Consulta en tu SQL SERVER");
                }
            }
            catch (Exception ex)
            {
                throw;
            }
        }
Esempio n. 3
0
 public TseApiToLocalDbContext(TseActasPresidenteDbContext context)
 {
     _context       = context;
     ActasGuardadas = 1;
 }