public void addCalificacionPendiente(Partido unPartido, Jugador unJugador) { CalificacionPendiente calificacionPendiente = new CalificacionPendiente() { Partido = unPartido, CalificadorID = this.ID, JugadorID = unJugador.ID}; db.CalificacionPendientes.InsertOnSubmit(calificacionPendiente); db.SubmitChanges(); }
public void calificarJugador(CalificacionPendiente calificacionPendiente, int puntaje, String descripcion) { Calificacion calificacion = new Calificacion() { CalificadorID = this.ID, PartidoID = calificacionPendiente.PartidoID, JugadorID = calificacionPendiente.JugadorID, Puntaje = (byte)puntaje, Descripcion = descripcion }; db.Calificacions.InsertOnSubmit(calificacion); db.CalificacionPendientes.DeleteOnSubmit(calificacionPendiente); db.SubmitChanges(); }
partial void DeleteCalificacionPendiente(CalificacionPendiente instance);
partial void UpdateCalificacionPendiente(CalificacionPendiente instance);
partial void InsertCalificacionPendiente(CalificacionPendiente instance);
private void detach_CalificacionPendientes(CalificacionPendiente entity) { this.SendPropertyChanging(); entity.Partido = null; }
private void detach_CalificacionPendientes1(CalificacionPendiente entity) { this.SendPropertyChanging(); entity.Jugador1 = null; }
private void attach_CalificacionPendientes(CalificacionPendiente entity) { this.SendPropertyChanging(); entity.Jugador = this; }