public ActionResult SaveInsertar(Insertar insertar) { _ciclistaDbContext.Insertar.Add(insertar); int savedRecords = _ciclistaDbContext.SaveChanges(); var result = new { SavedRecords = savedRecords }; return(Json(result)); }
private void Check_Load(object sender, EventArgs e) { circularProgressBar1.Maximum = 60; Eliminar.Start(); Insertar.Start(); System.Timers.Timer timer = new System.Timers.Timer(); timer.Interval = 1000; timer.Elapsed += Timer_Elapse; timer.Start(); }
static void Main(string[] args) { var insertar = new Insertar(); var actualizar = new Actualizar(); //insertar.InsertarEstudiante(); //insertar.InsertaListaEstuadiante(); //actualizar.ActualizarEstudianteConectado(); actualizar.ActualizarEstudianteDesconectado(); }
public object getValor(Entorno.Entorno ent) { if (ent.existe(variable)) { Simbolo sim = ent.get(variable); Object valor = sim.valor; foreach (Expresion exp in this.fuciones) { if (exp is Contiene) { Contiene exp2 = (Contiene)exp; exp2.coleccion = valor; valor = exp2.getValor(ent); } else if (exp is Insertar) { Insertar exp2 = (Insertar)exp; exp2.coleccion = valor; valor = exp2.getValor(ent); } else if (exp is Obtener) { Obtener exp2 = (Obtener)exp; exp2.coleccion = valor; valor = exp2.getValor(ent); } else if (exp is Poner) { Poner exp2 = (Poner)exp; exp2.coleccion = valor; valor = exp2.getValor(ent); } else if (exp is Remover) { Remover exp2 = (Remover)exp; exp2.coleccion = valor; valor = exp2.getValor(ent); } else if (exp is Size) { Size exp2 = (Size)exp; exp2.coleccion = valor; valor = exp2.getValor(ent); } else if (exp is Vaciar) { Vaciar exp2 = (Vaciar)exp; exp2.coleccion = valor; valor = exp2.getValor(ent); } else if (exp is endWith) { endWith exp2 = (endWith)exp; exp2.cadena = valor; valor = exp2.getValor(ent); } else if (exp is length) { length exp2 = (length)exp; exp2.cadena = valor; valor = exp2.getValor(ent); } else if (exp is startsWith) { startsWith exp2 = (startsWith)exp; exp2.cadena = valor; valor = exp2.getValor(ent); } else if (exp is subString) { subString exp2 = (subString)exp; exp2.cadena = valor; valor = exp2.getValor(ent); } else if (exp is toLower) { toLower exp2 = (toLower)exp; exp2.cadena = valor; valor = exp2.getValor(ent); } else if (exp is toUpper) { toUpper exp2 = (toUpper)exp; exp2.cadena = valor; valor = exp2.getValor(ent); } else if (exp is getDay) { getDay exp2 = (getDay)exp; exp2.fecha = valor; valor = exp2.getValor(ent); } else if (exp is getMonth) { getMonth exp2 = (getMonth)exp; exp2.fecha = valor; valor = exp2.getValor(ent); } else if (exp is getYear) { getYear exp2 = (getYear)exp; exp2.fecha = valor; valor = exp2.getValor(ent); } else if (exp is getHour) { getHour exp2 = (getHour)exp; exp2.hora = valor; valor = exp2.getValor(ent); } else if (exp is getMinuts) { getMinuts exp2 = (getMinuts)exp; exp2.hora = valor; valor = exp2.getValor(ent); } else if (exp is getSeconds) { getSeconds exp2 = (getSeconds)exp; exp2.hora = valor; valor = exp2.getValor(ent); } else if (exp is Identificador) { if (valor is Objeto) { Objeto ob = (Objeto)valor; Identificador ide = (Identificador)exp; valor = ide.getValor(ob.atributos); } } } return(valor); } return(null); }
private void Check_Load(object sender, EventArgs e) { Eliminar.Start(); Insertar.Start(); }