摘要: //商品详情 [HttpGet] public Goods GetGood(Goods goods) { using (SqlConnection conn = new SqlConnection(connstr)) { return conn.Query<Goods>("select * from 阅读全文
posted @ 2020-08-06 21:36 影子少年 阅读(161) 评论(0) 推荐(0)
摘要: //api //数据库连接字符串 string connstr = "Data Source=.;Initial Catalog=Month6;Integrated Security=True"; APIFileHelp help = new APIFileHelp(); //上传文件 [HttpP 阅读全文
posted @ 2020-08-06 21:01 影子少年 阅读(2819) 评论(1) 推荐(0)
摘要: 先从NuGet包安装 在实例化帮助类 RedisClient client = new RedisClient("127.0.0.1", 6379); 阅读全文
posted @ 2020-08-06 20:54 影子少年 阅读(95) 评论(0) 推荐(0)
摘要: --创建存储过程 create proc sp_Show( @index int, --当前页 @size int, --每页大小 @totalcount int out, --总数据数 @pagecount int out --总页数)asbegin --计算总数据数 select @totalc 阅读全文
posted @ 2020-08-06 20:04 影子少年 阅读(308) 评论(0) 推荐(0)
摘要: @{ ViewBag.Title = "Index";}<script src="~/Scripts/jquery-3.4.1.js"></script><script src="~/Scripts/jquery-3.4.1.min.js"></script><script src="~/jquer 阅读全文
posted @ 2020-08-06 20:01 影子少年 阅读(99) 评论(0) 推荐(0)
摘要: @{ ViewBag.Title = "Login";} <h2>Login</h2><script src="~/Scripts/jquery-3.4.1.js"></script><script src="~/Scripts/jquery-3.4.1.min.js"></script><scri 阅读全文
posted @ 2020-08-06 19:43 影子少年 阅读(385) 评论(0) 推荐(0)
摘要: 视图 @{ ViewBag.Title = "Add";} <h2>Add</h2> <table> <tr> <td>姓名</td> <td><input id="UserName" type="text" /></td> </tr> <tr> <td>密码</td> <td><input id= 阅读全文
posted @ 2020-08-06 19:40 影子少年 阅读(115) 评论(0) 推荐(0)