示例#1
0
        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();
        }
示例#2
0
        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();
        }
示例#3
0
 partial void DeleteCalificacionPendiente(CalificacionPendiente instance);
示例#4
0
 partial void UpdateCalificacionPendiente(CalificacionPendiente instance);
示例#5
0
 partial void InsertCalificacionPendiente(CalificacionPendiente instance);
示例#6
0
		private void detach_CalificacionPendientes(CalificacionPendiente entity)
		{
			this.SendPropertyChanging();
			entity.Partido = null;
		}
示例#7
0
		private void detach_CalificacionPendientes1(CalificacionPendiente entity)
		{
			this.SendPropertyChanging();
			entity.Jugador1 = null;
		}
示例#8
0
		private void attach_CalificacionPendientes(CalificacionPendiente entity)
		{
			this.SendPropertyChanging();
			entity.Jugador = this;
		}