- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 Sql通用增删改查带参数方法
引子:由于现在数据库安全的关注越来越多,sql注入几乎是绝对忽略的一环,sql语句带参数就相对安全一些,但是平常的一些查询语句带参数,写的较为繁琐,于是就想如何能够节省工作量,便做了一个通用中间库,希望能有所帮助(盗版了我同事的代码)。 原理:利用T entity的反射拼接 using System; using System.Collections.Generic; using System
2015-05-19 13:48:20 668
原创 点击body获取点击的对象
点击body获取点击的对象 $("body").click(function (e) { var o = $(e.target); var id = o.attr("id"); if (typeof (id) == "undefined") { id = o.parent().parent().parent().at
2015-05-18 11:35:01 559
转载 C#_在VS2010下进行单元测试
在VS2010中,单元测试的功能很强大,使得建立单元测试和编写单元测试代码,以及管理和运行单元测试都变得简单起来,通过私有访问器可以对私有方法也能进行单元测试,并且支持数据驱动的单元测试。 1、建立单元测试项目 1.1、从被测试代码生成单元测试 1)实例:创建VC#模式下的控制台应用程序,工程名为CUnitTest 2)输入简单的加、减、乘、除函数代码,如下图所示
2015-05-15 14:44:03 450
P2Flash3.5破解版
2014-12-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人