Example #1
0
 public bool InsertActivedInfo(string username, string schoolnum, string phonenum)
 {
     mySQL.User_Active.Add(new useractive {
         u_school_num  = schoolnum,
         u_name        = username,
         u_phone       = phonenum,
         u_active_time = DateTime.Now
     });
     return(mySQL.SaveChanges() > 0);
 }