摘要: 由于项目中经常会用到在查询SQL的时候用到 字段 in( xx ) 的情况,但是每次在组织SQL的时候都会 大量使用 "'"+ x + "'" 这样写代码无疑非常操蛋。 所以我想到不如直接带入所有参数格式为 a,b,c 不用 ' 符号, 然后在SQL里面写一个函数将 a,b,c 分解为 'a','b 阅读全文
posted @ 2017-02-10 14:30 l1honghui 阅读(1199) 评论(0) 推荐(0) 编辑
摘要: 依赖环境 .Net Core 1.0.0-preview2-003121 VSCode 一、创建.Net Core项目 1、打开命令行选择好工作目录后执行 dotnet new,生成2个文件(Program.cs、project.json) 2、执行 dotnet restore 还原整个项目的依赖 阅读全文
posted @ 2016-10-28 18:05 l1honghui 阅读(2291) 评论(0) 推荐(1) 编辑
摘要: --1.将每个老师的工资更新为原来的工资+奖金 --定义两个变量,用来存储ttid与reward declare @tid int declare @reward money --1。建立一个基于奖金表的游标 declare cur_reward cursor fast_forward for se... 阅读全文
posted @ 2015-12-03 16:52 l1honghui 阅读(188) 评论(0) 推荐(0) 编辑
摘要: asp.net .ashx文件使用server.mappath解决方法:System.Web.HttpContext.Current.Server.MapPath在类文件中使用:System.Web.HttpServerUtility server = System.Web.HttpContext.... 阅读全文
posted @ 2015-11-25 12:42 l1honghui 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 后台传给前台一传Json格式的字符串的时候,前台需要将字符串解析成Json格式才能使用。如 string data= "{name:'afei',age:21}";前台需要调用JS函数,eval()来将string类型转成Json的Object类型。var result = eval("("+dat... 阅读全文
posted @ 2015-09-10 14:54 l1honghui 阅读(193) 评论(0) 推荐(0) 编辑
摘要: The Autobiography of Benjamin Franklin Benjamin Franklin 8.99 The Confidence Man He... 阅读全文
posted @ 2015-08-28 17:36 l1honghui 阅读(483) 评论(0) 推荐(0) 编辑
摘要: System.Web.HttpContext.Current.Server.MapPath一般来说,我们需要去当项目文件的当前路径比如你的项目文件是在d:/workspace/demo/demo.sln我们需要取到d:/workspace/demo/ 这个路径。现在列出我再网上找出来的一些获取路径的... 阅读全文
posted @ 2015-08-28 17:15 l1honghui 阅读(263) 评论(0) 推荐(0) 编辑
摘要: C#中可以用XmlDocument类操作Xml文件Xml文件格式较多,一种为较复杂的 在 中添加元素数据的,一种为在中添加元素数据的 25 56 C#控制台中读取XmlDocument doc = new XmlDocument(); doc.Load... 阅读全文
posted @ 2015-08-19 09:59 l1honghui 阅读(665) 评论(0) 推荐(0) 编辑