Beispiel #1
0
        // GET: Home
        public ActionResult Index()
        {
            //#region 插入数据

            //var userinfo = new UserInfo
            //{
            //    RealName = "RealName",
            //    Age = 1,
            //    Sex = 1
            //};
            //var user = new Users
            //{
            //    UserName = "******",
            //    PassWord = "******",
            //    UserInfo = userinfo
            //};
            //db.Users.Add(user);
            //db.SaveChanges();
            //#endregion

            #region 查询list

            var a = _iUsersBll.Users();
            var b = _iHlelloBll.Hello();
            var c = _iuserInfoBll.Show();
            #endregion

            return(View());
        }