Esempio n. 1
0
        public ActionResult Index()
        {
            TryerEntities db   = new TryerEntities();
            var           user = new Sys_User()
            {
                ID = Guid.NewGuid().ToString(), LoginName = "llb", Birthday = DateTime.Now, Email = "*****@*****.**", Gender = 1, Mobile = "13902020202", Password = "******", RealName = "李礼彬"
            };

            db.Sys_User.Add(user);
            db.SaveChanges();

            ViewBag.Count = db.Sys_User.Count();

            return(View());
        }