摘要: Dapper的用法与DBHelper的用法有些许类似,便于记忆理解。 //数据库连接字符串 string connStr = "Data Source=.;Initial Catalog=MonthTest;Integrated Security=True"; //Dapper添加 [HttpPos 阅读全文
posted @ 2020-08-06 17:31 冬暖s 阅读(132) 评论(0) 推荐(0)
摘要: 写法一: create proc p_page(@name varchar(50),--模糊查询@index int, --当前页@size int, --大小@total int out, --总记录数@count int out --总页数)asbegin --首先对当前页判断 既不能小于1也不 阅读全文
posted @ 2020-08-05 19:43 冬暖s 阅读(990) 评论(0) 推荐(0)
摘要: 文件上传: API内容: /// <summary> /// 文件上传 /// </summary> /// <returns></returns> [HttpPost] public int Upload() { if (HttpContext.Current.Request.Files.Coun 阅读全文
posted @ 2020-07-22 19:42 冬暖s 阅读(227) 评论(0) 推荐(0)
摘要: 文件上传: 视图 view: @{ ViewBag.Title = "Index";} <h2>文件管理</h2> <form enctype="multipart/form-data"> <input id="F1" type="file" /> <input id="Button1" type= 阅读全文
posted @ 2020-07-22 15:37 冬暖s 阅读(818) 评论(0) 推荐(0)
摘要: @{ ViewBag.Title = "Index1";} <h2>Index1</h2> <input id="Button1" type="button" value="加入" onclick="save()" /><input id="Button1" type="button" value= 阅读全文
posted @ 2020-06-30 20:55 冬暖s 阅读(583) 评论(0) 推荐(0)
摘要: DDL (Data Definition Language 数据定义语言) 主要是对于数据库中表的一些操作 包括 create table 创建表 alter table 修改表 drop table 删除表 truncate table 删除表中所有行 DML (Data Manipulation 阅读全文
posted @ 2020-06-19 14:49 冬暖s 阅读(107) 评论(0) 推荐(2)