摘要: /// <summary> /// 写入错误日志文件类 /// </summary> public class ErrorLog { /// <summary> /// 记录错误方法 /// </summary> /// <param name="error">错误信息</param> public 阅读全文
posted @ 2020-09-29 02:40 Valoris 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 1 namespace ORM 2 { 3 class Program 4 { 5 static void Main(string[] args) 6 { 7 //AddPetStore();//添加 8 UpdatePetStore(1);//修改 9 } 10 /// <summary> 11 阅读全文
posted @ 2019-08-27 17:58 Valoris 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1 前台: 2 <title>标题</title> 3 <link href="EasyUi_v1.3.4/easyui/themes/default/easyui.css" rel="stylesheet" /> 4 <link href="EasyUi_v1.3.4/easyui/themes/ 阅读全文
posted @ 2019-03-20 09:59 Valoris 阅读(427) 评论(1) 推荐(0) 编辑
摘要: 1 --创建存储过程 2 create proc usp_userInfo 3 @pageSize int=7,--每页显示条数 4 @pageIndex int=1,--每页显示页数 5 @pageCount int output ,--显示总的条数 6 @recodNumber int outp 阅读全文
posted @ 2019-01-18 17:36 Valoris 阅读(1787) 评论(0) 推荐(0) 编辑
摘要: 多条件查询,使用StringBuilder拼接SQL语句,效果如下: 当点击按钮时代码如下: private void button1_Click(object sender, EventArgs e) { //假设表名:Books //列名:BooksName(图书名称) Author(作者) P 阅读全文
posted @ 2019-01-17 17:38 Valoris 阅读(4765) 评论(0) 推荐(0) 编辑
摘要: 问题:bootstrap-table加载数据不显示 @{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Layout.cshtml"; } <script> $(function () { InitMainTable(); document.o 阅读全文
posted @ 2018-12-14 19:20 Valoris 阅读(1825) 评论(0) 推荐(0) 编辑
摘要: 1、错误案例: Index:1 Uncaught ReferenceError: 系统管理 is not defined at HTMLAnchorElement.onclick (Index:1) 2、错误写法 3、正确写法(加入转义符号 ' \ ' ) 阅读全文
posted @ 2018-12-08 13:07 Valoris 阅读(408) 评论(0) 推荐(1) 编辑
摘要: #region 【通过XDocument的方式将Xml文件递归到TreeView控件中】 //读取Xml文件(XDocument) //1.加载Xml文件 XDocument document=XDoument.Load("文件名称.xml"); //2.先获取跟节点 XElement rootEl 阅读全文
posted @ 2018-12-05 20:29 Valoris 阅读(549) 评论(0) 推荐(0) 编辑
摘要: List<Person> list=new List<Person>{ new Person(){Name="张三",Age=50,Address="重庆市沙坪坝区"}, new Person(){Name="李四",Age=20,Address="西科公寓"}, new Person(){Name 阅读全文
posted @ 2018-12-04 08:31 Valoris 阅读(821) 评论(2) 推荐(0) 编辑
摘要: List<Person> list = new List<Person> { new Person{Name="张三",Age=20,Email="zs@zhansan.com"}, new Person{Name="李四",Age=30,Email="ls@lisi.com"}, new Pers 阅读全文
posted @ 2018-12-03 21:36 Valoris 阅读(1462) 评论(1) 推荐(0) 编辑