示例#1
0
        public void signUp(AdminRegister a)
        {
            Connection gcon = new Connection();

            // gcon.getConnection();
            gcon.ExecuteQuery("insert into AdminReg values ('" + a.Name + "','" + a.Email + "','" + a.Password + "','" + a.role + "')");
            gcon.ExecuteQuery("insert into login values('" + a.Email + "','" + a.Password + "','" + a.role + "')");
        }
        public void signUp(UserRegister a)
        {
            Connection gcon = new Connection();

            // gcon.getConnection();
            gcon.ExecuteQuery("insert into UserReg values ('" + a.CName + "','" + a.Cgender + "','" + a.CAge + "','" + a.GName + "','" + a.Grelation + "','" + a.Email + "','" + a.Password + "','" + a.pic + "','" + a.role + "')");
            gcon.ExecuteQuery("insert into login values('" + a.Email + "','" + a.Password + "','" + a.role + "')");
        }
示例#3
0
 public void Add(Fee s)
 {
     con.getConnection();
     con.ExecuteQuery("insert into Fee values('" + s.Uid + "','" + s.Amount + "','" + s.DateTimeNow + "')");
 }
 public void Add(Events s)
 {
     con.getConnection();
     con.ExecuteQuery("insert into Events values('" + s.Name + "','" + s.Description + "','" + s.EventsPic + "','" + s.Date + "','" + s.Time + "')");
 }
 public void Add(Picture s)
 {
     con.getConnection();
     con.ExecuteQuery("insert into Picture values('" + s.Descrption + "','" + s.pic + "')");
 }