为您找到相关结果40,913个
四个常用的.NET的SQLHELPER方法实例_实用技巧_脚本之家
需要说明的是,sqlhelper在winform的开发中用的比较多,在asp.net和mvc的项目中用的封装类跟winform有相似,但是也有一定的区别,因为大项目都是用那种比较好的框架,或者自己公司开发的框架,其中的封装类也有所不同,本文总结的这四个方法在winform中用比较常用。
www.jb51.net/article/544...htm 2024-5-31
c# SQLHelper(for winForm)实现代码_C#教程_脚本之家
SQLHelper.cs 复制代码代码如下: using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Data; using System.Data.SqlClient; using System.Configuration; namespace HelloWinForm.DBUtility { class SQLHelper { #region 通用方法 // 数据连接池 private SqlConne...
www.jb51.net/article/172...htm 2024-5-30
PHP连接MySql数据库方法简化版_php技巧_脚本之家
$update= DBHelper ::sqlHelper(2,"update XXX set xx = '$xx',xx = '$xx',xx = '$xx', where xx = '$xx'"); //删除数据 $delete= DBHelper ::sqlHelper(3,"delete from XXX where xx = '$xx'"); 前两条测试数据,都是查询,设置的返回参数分别为mysqli_fetch_assoc、mysqli_fetch_all,...
www.jb51.net/article/2567...htm 2024-5-31
Asp.net 在三层架构中事务的使用实例代码_实用技巧_脚本之家
Sqlhelper: 复制代码代码如下: private static SqlConnection Cnn = new SqlConnection(DbConfig.ConnectionString); #region 判读SqlConnection 是否开启连接 并开启 /// /// 判读SqlConnection 是否开启连接 并开启 /// /// <returns>返回SqlConnection</returns> private static SqlConnection...
www.jb51.net/article/314...htm 2024-5-31
Java Mybatis批量修改封装详解_java_脚本之家
importtk.mybatis.mapper.mapperhelper.SqlHelper; importjava.util.Set; importstatictk.mybatis.mapper.mapperhelper.SqlHelper.whereVersion; /** * ListUpdateProvider实现类,批量修改方法实现类 * * @author lanyanhua */ publicclassListUpdateProviderextendsMapperTemplate { ...
www.jb51.net/article/2271...htm 2024-5-31
.Net core下直接执行SQL语句并生成DataTable的实现方法_实用技巧_脚本...
对于从数据库中获取DataTable的做法,采用类似SqlHelper的方式编写DbContext的ExecuteDataTable扩展方法,传入SQL语句和SQL语句的参数,生成MicroDataTable:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 public static MicroDataTable ExecuteDataTable(this DbContext context, string sql, params ...
www.jb51.net/article/964...htm 2024-5-31
sql手工注入语句&SQL手工注入大全_入侵防御_网络安全_脚本之家
1.判断是否有注入 ;and 1=1 ;and 1=2 2.初步判断是否是mssql ;and user>0 3.判断数据库系统 ;and (select count(*) from sysobjects)>0 mssql ;and (select count(*) from msysobjects)>0 access 4.注入参数是字符 'and [查询条件] and ''=' ...
www.jb51.net/hack/5756...html 2024-5-31