Esempio n. 1
0
 public Participacion(ParticipacionEN p)
 {
     this.reto      = p.Reto;
     this.fecha     = p.Fecha;
     this.id        = p.Id;
     this.prueba    = p.Prueba;
     this.reportes  = p.Reportes;
     this.usuario_0 = p.Usuario_0;
     this.valor     = p.Valor;
     this.votos     = p.Votos;
 }
Esempio n. 2
0
        private void init(int id, RetappGenNHibernate.EN.Retapp.RetoEN reto, RetappGenNHibernate.EN.Retapp.UsuarioEN usuario_0, Nullable <DateTime> fecha, float valor, string prueba, int votos, int reportes)
        {
            this.Id = id;

            this.Reto = reto;

            this.Usuario_0 = usuario_0;

            this.Fecha = fecha;

            this.Valor = valor;

            this.Prueba = prueba;

            this.Votos = votos;

            this.Reportes = reportes;
        }
Esempio n. 3
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }
            RetoEN t = obj as RetoEN;

            if (t == null)
            {
                return(false);
            }
            if (Id.Equals(t.Id))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 4
0
 public RetoEN(RetoEN reto)
 {
     this.init(Id, reto.Concurso, reto.Nombre, reto.Descripcion, reto.FechaFin, reto.Active, reto.Participacion);
 }