Curtain.DataAccess 执行数据库脚本的参数(自动生成insert、update执行脚本时用) 数据表的列名 where条件类型 参数 参数 参数(列=固定字符【函数、表达式等】) 参数(列=参数) 参数(列=参数) 返回表示当前的 System.String。 输出到日志文件中的文本 数据库工厂 数据库连接配置文件名 数据库连接配置文件 默认数据库类型 默认数据库连接串 默认数据库连接参数 默认参数名格式 创建数据连接(使用默认数据库连接串或连接参数。如无默认值时读取DataAccess.ini文件,并用ini中设置默认值。) 创建数据连接(参数只有一个时,当做DB连接串使用;否则作为连接参数。) 数据库类型 连接参数 数据连接 创建数据连接 数据库类型 连接参数 数据连接 创建数据连接 数据库类型 连接参数 数据连接 创建数据连接 数据库类型 数据连接 获取程序所在绝对路径 相对路径 获取连接字符串 SQL中where条件的方式 非where条件 AND条件 OR条件 SQL参数名格式 未指定 CDA格式 数据库格式 数据库操作类 CDA参数名格式前缀 CDA参数名格式后缀 数据库操作类 数据库操作类 数据库连接字符串 数据库连接配置文件名 数据库连接配置文件 默认数据库类型 默认数据库连接串 默认数据库连接参数 默认参数名格式 创建数据连接(使用默认数据库连接串或连接参数。如无默认值时读取DataAccess.ini文件,并用ini中设置默认值。) 创建数据连接 数据库类型 数据连接 创建数据连接(参数只有一个时,当做DB连接串使用;否则作为连接参数。) 数据库类型 连接参数 数据连接 创建数据连接 数据库类型 连接参数 数据连接 创建数据连接 数据库类型 连接参数 数据连接 获取连接字符串 自动生成insert语句 自动生成insert语句 根据参数插入数据 根据数据源和参数批量插入数据 自动生成update语句 自动生成update语句 根据参数更新数据 根据数据源和参数批量更新数据 分页查询(sql中不能包含rowno字段) 分页查询(sql中不能包含rowno字段) 分页查询 分页查询(rows=0时,查询总行数) 获取总条数SQL(sql中不能包含rowno字段) 获取总条数SQL(sql中不能包含rowno字段) 获取分页查询SQL(sql中不能包含rowno字段) 获取分页查询SQL(sql中不能包含rowno字段) 分页查询(sql中不能包含rowno字段) 分页查询(sql中不能包含rowno字段) 分页查询(sql中不能包含rowno字段) 分页查询(sql中不能包含rowno字段) 获取总条数SQL(sql中不能包含rowno字段) 获取分页查询SQL(sql中不能包含rowno字段) 获取分页查询SQL(sql中不能包含rowno字段) 根据 ParameterName 设置 DbParameterName,CDAParameterName 根据 ParameterName 设置 DbParameterName,CDAParameterName;并替换SQL文中的参数 根据 ParameterName 设置 DbParameterName,CDAParameterName 根据 ParameterName 设置 DbParameterName,CDAParameterName;并替换SQL文中的参数 获取程序所在绝对路径 相对路径 数据库操作类 数据库类型 参数前缀(默认:oracle[:], sql server[@]) 数据源的连接串 数据源的连接状态 数据库的连接 事物 获取或设置在终止执行命令的尝试并生成错误之前的等待时间(以秒为单位)。 null 为默认值(30秒), 0 为不限制。 统一回滚(在方法结束后自动提交的框架中使用,通知正常结束的方法也需要回滚) 数据库操作类 数据库操作类 数据库连接字符串 初始化数据库操作类 新建数据库连接 打开数据库连接 数据库连接字符串 是否开启事物 打开数据库连接 是否开启事物 开启事务 开启事务 在事务中设置保存点 回滚事务到保存点 回滚事务 提交事务 关闭数据库连接 释放数据库连接资源 执行非查询SQL语句 SQL 参数 受影响行数 执行非查询存储过程 存储过程名 参数 受影响行数 执行非查询SQL SQL SQL类别 参数 受影响行数 执行查询SQL语句 SQL 参数 查询结果(DataSet) 执行查询存储过程 存储过程名 参数 查询结果(DataSet) 执行查询SQL SQL SQL类别 参数 查询结果(DataSet) 执行查询SQL语句 SQL 表名 参数 查询结果(DataSet) 执行查询存储过程 存储过程名 表名 参数 查询结果(DataSet) 执行查询SQL SQL SQL类别 表名 参数 查询结果(DataSet) 执行查询SQL语句 SQL 参数 查询结果(DataSet) 执行查询存储过程 存储过程名 参数 查询结果(DataSet) 执行查询SQL语句 SQL SQL类别 参数 查询结果(DataSet) 执行查询SQL语句 SQL 表名 参数 查询结果(DataSet) 执行查询存储过程 存储过程名 表名 参数 查询结果(DataSet) 执行查询SQL语句 SQL SQL类别 表名 参数 查询结果(DataTable) 执行查询SQL语句 SQL 参数 查询结果(DataReader) 执行查询存储过程 存储过程名 参数 查询结果(DataReader) 执行查询SQL SQL SQL类别 参数 查询结果(DataReader) 执行查询SQL语句(第一行第一列) SQL 参数 查询结果(第一行第一列) 执行查询存储过程(第一行第一列) 存储过程名 参数 查询结果(第一行第一列) 执行查询SQL语句(第一行第一列) SQL SQL类别 参数 查询结果(第一行第一列) 执行查询SQL语句(第一行第一列) SQL 参数 查询结果(第一行第一列) 执行查询存储过程(第一行第一列) 存储过程名 参数 查询结果(第一行第一列) 执行查询SQL(第一行第一列) SQL SQL类别 参数 查询结果(第一行第一列) 数据库工厂 数据库连接配置文件名 数据库连接配置文件 默认数据库类型 默认数据库连接串 默认数据库连接参数 默认参数名格式 创建数据连接(使用默认数据库连接串或连接参数。如无默认值时读取DataAccess.ini文件,并用ini中设置默认值。) 创建数据连接 数据库类型 数据连接 创建数据连接(参数只有一个时,当做DB连接串使用;否则作为连接参数。) 数据库类型 连接参数 数据连接 创建数据连接 数据库类型 连接参数 数据连接 创建数据连接 数据库类型 连接参数 数据连接 获取连接字符串 支持的数据库 未指定 SQL Server Oracle MySql SQLite PostgreSQL 执行数据库脚本的参数 DB参数 参数名 数据库支持的参数名格式 CDA支持的参数名格式 参数源名称(无前后缀) 使用的参数名格式 数据类型 数据类型 参数值 数据大小 参数方向 参数 参数 参数 参数 参数 参数 参数 返回表示当前的 System.String。 输出到日志文件中的文本 扩展方法 清除DbParameter(再执行SQL时,会重新生成新的清除DbParameter) 清除DbParameter(再执行SQL时,会重新生成新的清除DbParameter) SQLServer数据库版本 未指定 SQLServer 2000 SQLServer 2008 SQLServer 2008 R2 SQLServer 2012 Oracle数据库版本 未指定 Oracle 8i Oracle 9i Oracle 10g Oracle 11g Oracle 11g r2 Oracle 12c MySql数据库版本 未指定 5 SQLite数据库版本 未指定 3 PostgreSQL数据库版本 未指定 12.1 数据类型 未指定 布尔型 是最小的整数类型,仅用1字节,范围:0至此2^8-1。 SQLServer:tinyint Oracle: MySql:tinyint SQLite: 以2个字节来存储正负数。存储范围为:-2^15至2^15-1。 SQLServer:smallint Oracle:int16 MySql:smallint SQLite:int16 以4个字节来存储正负数。可存储范围为:-2^31至2^31-1。 SQLServer:int Oracle:int32 MySql:int[integer] SQLite:int32 以8个字节来存储正负数。 SQLServer:bigint Oracle:int64 MySql:bigint SQLite:int64 表示的数字可以达到38位,存储数据时所用的字节数目会随着使用权用位数的多少变化。 SQLServer:decimal[numeric] Oracle:number MySql:decimal SQLite:decimal 货币(SQLServer) 用8个字节来存储数据。最多可为53位。范围为:-1.79E+308至1.79E+308。 SQLServer:float Oracle:float MySql:float SQLite:single 位数为24,用4个字节。 数字范围:-3.04E+38至3.04E+38。 SQLServer:real Oracle:real MySql:double SQLite:double 长度是设定的,最短为1字节,最长为8000个字节,不足的长度会用空白补上。 SQLServer:char Oracle:char MySql:char SQLite:char 长度是设定的, 最短为1字节, 最长为4000个字节.不足的长度会用空白补上.储存一个字符需要2个字节。 SQLServer:nchar Oracle:nchar MySql:nchar SQLite:nchar 长度也是设定的, 最短为1字节, 最长为8000个字节, 尾部的空白会去掉。 SQLServer:varchar Oracle:varchar2 MySql:varchar SQLite:varchar 长度是设定的, 最短为1字节, 最长为4000个字节.尾部的空白会去掉.储存一个字符需要2个字节。 SQLServer:nvarchar Oracle:nvarchar2 MySql:nvarchar SQLite:nvarchar 长宽也是设定的, 最长可以存放2G的数据。 长度是设定的, 最短为1字节, 最长为2G.尾部的空白会去掉, 储存一个字符需要2个字节。 二进制 图片(SQLServer) 日期时间 日期 时间 时间戳 时间间隔 时间间隔(PostgreSQL) GUID 游标 XML ENUM(MySQL) SET(MySQL) GIS(MySQL) JSON(MySQL、PostgreSQL) JSON(PostgreSQL) key-value(PostgreSQL) 数组(PostgreSQL) 点(PostgreSQL) 直线(PostgreSQL) 线段(PostgreSQL) 矩形(PostgreSQL) 路径(PostgreSQL) 多边形(PostgreSQL) 圆(PostgreSQL) IP地址(PostgreSQL) Mac地址(PostgreSQL) 对象名【表名、模式名、用户名等】(PostgreSQL) OID(PostgreSQL) 数据访问异常 数据访问异常 获取描述当前异常的消息。 SQL异常 SQL异常 非SQL异常 非SQL异常 The OracleHelper class is intended to encapsulate high performance, scalable best practices for common uses of OracleClient This method is used to attach array of OracleParameters to an OracleCommand. This method will assign a value of DbNull to any parameter with a direction of InputOutput and a value of null. This behavior will prevent default values from being used, but this will be the less common case than an intended pure output parameter (derived as InputOutput) where the user provided no input value. The command to which the parameters will be added An array of OracleParameters to be added to command This method assigns dataRow column values to an array of OracleParameters Array of OracleParameters to be assigned values The dataRow used to hold the stored procedure's parameter values This method assigns an array of values to an array of OracleParameters Array of OracleParameters to be assigned values Array of objects holding the values to be assigned This method opens (if necessary) and assigns a connection, transaction, command type and parameters to the provided command The OracleCommand to be prepared A valid OracleConnection, on which to execute this command A valid OracleTransaction, or 'null' The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParameters to be associated with the command or 'null' if no parameters are required true if the connection was opened by the method, otherwose is false. Execute an OracleCommand (that returns no resultset and takes no parameters) against the database specified in the connection string e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders"); A valid connection string for an OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute an OracleCommand (that returns no resultset) against the database specified in the connection string using the provided parameters e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders", new OracleParameter("@prodid", 24)); A valid connection string for an OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via an OracleCommand (that returns no resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(connString, "PublishOrders", 24, 36); A valid connection string for an OracleConnection The name of the stored prcedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute an OracleCommand (that returns no resultset and takes no parameters) against the provided OracleConnection. e.g.: int result = ExecuteNonQuery(conn, CommandType.StoredProcedure, "PublishOrders"); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute an OracleCommand (that returns no resultset) against the specified OracleConnection using the provided parameters. e.g.: int result = ExecuteNonQuery(conn, CommandType.StoredProcedure, "PublishOrders", new OracleParameter("@prodid", 24)); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via an OracleCommand (that returns no resultset) against the specified OracleConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(conn, "PublishOrders", 24, 36); A valid OracleConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute an OracleCommand (that returns no resultset and takes no parameters) against the provided OracleTransaction. e.g.: int result = ExecuteNonQuery(trans, CommandType.StoredProcedure, "PublishOrders"); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute an OracleCommand (that returns no resultset) against the specified OracleTransaction using the provided parameters. e.g.: int result = ExecuteNonQuery(trans, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via an OracleCommand (that returns no resultset) against the specified OracleTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(conn, trans, "PublishOrders", 24, 36); A valid OracleTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute an OracleCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: DataSet ds = ExecuteDataset(connString, CommandType.StoredProcedure, "GetOrders"); A valid connection string for an OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute an OracleCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: DataSet ds = ExecuteDataset(connString, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid connection string for an OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(connString, "GetOrders", 24, 36); A valid connection string for an OracleConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute an OracleCommand (that returns a resultset and takes no parameters) against the provided OracleConnection. e.g.: DataSet ds = ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders"); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute an OracleCommand (that returns a resultset) against the specified OracleConnection using the provided parameters. e.g.: DataSet ds = ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(conn, "GetOrders", 24, 36); A valid OracleConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute an OracleCommand (that returns a resultset and takes no parameters) against the provided OracleTransaction. e.g.: DataSet ds = ExecuteDataset(trans, CommandType.StoredProcedure, "GetOrders"); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute an OracleCommand (that returns a resultset) against the specified OracleTransaction using the provided parameters. e.g.: DataSet ds = ExecuteDataset(trans, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(trans, "GetOrders", 24, 36); A valid OracleTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute an OracleCommand (that returns a resultset) against the specified OracleConnection using the provided parameters. e.g.: DataTable dt = ExecuteDatatable(conn, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command A datatable containing the resultset generated by the command Execute an OracleCommand (that returns a resultset) against the specified OracleTransaction using the provided parameters. e.g.: DataTable dt = ExecuteDatatable(trans, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command A datatable containing the resultset generated by the command This enum is used to indicate whether the connection was provided by the caller, or created by OracleHelper, so that we can set the appropriate CommandBehavior when calling ExecuteReader() Connection is owned and managed by OracleHelper Connection is owned and managed by the caller Create and prepare an OracleCommand, and call ExecuteReader with the appropriate CommandBehavior. If we created and opened the connection, we want the connection to be closed when the DataReader is closed. If the caller provided the connection, we want to leave it to them to manage. A valid OracleConnection, on which to execute this command A valid OracleTransaction, or 'null' The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParameters to be associated with the command or 'null' if no parameters are required Indicates whether the connection parameter was provided by the caller, or created by OracleHelper OracleDataReader containing the results of the command Execute an OracleCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: OracleDataReader dr = ExecuteReader(connString, CommandType.StoredProcedure, "GetOrders"); A valid connection string for an OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A OracleDataReader containing the resultset generated by the command Execute an OracleCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: OracleDataReader dr = ExecuteReader(connString, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid connection string for an OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command A OracleDataReader containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: OracleDataReader dr = ExecuteReader(connString, "GetOrders", 24, 36); A valid connection string for an OracleConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A OracleDataReader containing the resultset generated by the command Execute an OracleCommand (that returns a resultset and takes no parameters) against the provided OracleConnection. e.g.: OracleDataReader dr = ExecuteReader(conn, CommandType.StoredProcedure, "GetOrders"); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A OracleDataReader containing the resultset generated by the command Execute an OracleCommand (that returns a resultset) against the specified OracleConnection using the provided parameters. e.g.: OracleDataReader dr = ExecuteReader(conn, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command A OracleDataReader containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: OracleDataReader dr = ExecuteReader(conn, "GetOrders", 24, 36); A valid OracleConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A OracleDataReader containing the resultset generated by the command Execute an OracleCommand (that returns a resultset and takes no parameters) against the provided OracleTransaction. e.g.: OracleDataReader dr = ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders"); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A OracleDataReader containing the resultset generated by the command Execute an OracleCommand (that returns a resultset) against the specified OracleTransaction using the provided parameters. e.g.: OracleDataReader dr = ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command A OracleDataReader containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: OracleDataReader dr = ExecuteReader(trans, "GetOrders", 24, 36); A valid OracleTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A OracleDataReader containing the resultset generated by the command Execute an OracleCommand (that returns a 1x1 resultset and takes no parameters) against the database specified in the connection string. e.g.: int orderCount = (int)ExecuteScalar(connString, CommandType.StoredProcedure, "GetOrderCount"); A valid connection string for an OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute an OracleCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(connString, CommandType.StoredProcedure, "GetOrderCount", new OracleParameter("@prodid", 24)); A valid connection string for an OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(connString, "GetOrderCount", 24, 36); A valid connection string for an OracleConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute an OracleCommand (that returns a 1x1 resultset and takes no parameters) against the provided OracleConnection. e.g.: int orderCount = (int)ExecuteScalar(conn, CommandType.StoredProcedure, "GetOrderCount"); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute an OracleCommand (that returns a 1x1 resultset) against the specified OracleConnection using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(conn, CommandType.StoredProcedure, "GetOrderCount", new OracleParameter("@prodid", 24)); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a 1x1 resultset) against the specified OracleConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(conn, "GetOrderCount", 24, 36); A valid OracleConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute an OracleCommand (that returns a 1x1 resultset and takes no parameters) against the provided OracleTransaction. e.g.: int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount"); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute an OracleCommand (that returns a 1x1 resultset) against the specified OracleTransaction using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount", new OracleParameter("@prodid", 24)); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a 1x1 resultset) against the specified OracleTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(trans, "GetOrderCount", 24, 36); A valid OracleTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute an OracleCommand (that returns a resultset and takes no parameters) against the provided OracleConnection. e.g.: XmlReader r = ExecuteXmlReader(conn, CommandType.StoredProcedure, "GetOrders"); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command using "FOR XML AUTO" An XmlReader containing the resultset generated by the command Execute an OracleCommand (that returns a resultset) against the specified OracleConnection using the provided parameters. e.g.: XmlReader r = ExecuteXmlReader(conn, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command using "FOR XML AUTO" An array of OracleParamters used to execute the command An XmlReader containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: XmlReader r = ExecuteXmlReader(conn, "GetOrders", 24, 36); A valid OracleConnection The name of the stored procedure using "FOR XML AUTO" An array of objects to be assigned as the input values of the stored procedure An XmlReader containing the resultset generated by the command Execute an OracleCommand (that returns a resultset and takes no parameters) against the provided OracleTransaction. e.g.: XmlReader r = ExecuteXmlReader(trans, CommandType.StoredProcedure, "GetOrders"); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command using "FOR XML AUTO" An XmlReader containing the resultset generated by the command Execute an OracleCommand (that returns a resultset) against the specified OracleTransaction using the provided parameters. e.g.: XmlReader r = ExecuteXmlReader(trans, CommandType.StoredProcedure, "GetOrders", new OracleParameter("@prodid", 24)); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command using "FOR XML AUTO" An array of OracleParamters used to execute the command An XmlReader containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: XmlReader r = ExecuteXmlReader(trans, "GetOrders", 24, 36); A valid OracleTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute an OracleCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid connection string for an OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute an OracleCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new OracleParameter("@prodid", 24)); A valid connection string for an OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of OracleParamters used to execute the command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a stored procedure via an OracleCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, 24); A valid connection string for an OracleConnection The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Execute an OracleCommand (that returns a resultset and takes no parameters) against the provided OracleConnection. e.g.: FillDataset(conn, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute an OracleCommand (that returns a resultset) against the specified OracleConnection using the provided parameters. e.g.: FillDataset(conn, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new OracleParameter("@prodid", 24)); A valid OracleConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of OracleParamters used to execute the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(conn, "GetOrders", ds, new string[] {"orders"}, 24, 36); A valid OracleConnection The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Execute an OracleCommand (that returns a resultset and takes no parameters) against the provided OracleTransaction. e.g.: FillDataset(trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute an OracleCommand (that returns a resultset) against the specified OracleTransaction using the provided parameters. e.g.: FillDataset(trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new OracleParameter("@prodid", 24)); A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of OracleParamters used to execute the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(trans, "GetOrders", ds, new string[]{"orders"}, 24, 36); A valid OracleTransaction The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Private helper method that execute an OracleCommand (that returns a resultset) against the specified OracleTransaction and OracleConnection using the provided parameters. e.g.: FillDataset(conn, trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new OracleParameter("@prodid", 24)); A valid OracleConnection A valid OracleTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of OracleParamters used to execute the command Executes the respective command for each inserted, updated, or deleted row in the DataSet. e.g.: UpdateDataset(conn, insertCommand, deleteCommand, updateCommand, dataSet, "Order"); A valid transact-SQL statement or stored procedure to insert new records into the data source A valid transact-SQL statement or stored procedure to delete records from the data source A valid transact-SQL statement or stored procedure used to update records in the data source The DataSet used to update the data source The DataTable used to update the data source. Simplify the creation of an Oracle command object by allowing a stored procedure and optional parameters to be provided e.g.: OracleCommand command = CreateCommand(conn, "AddCustomer", "CustomerID", "CustomerName"); A valid OracleConnection object The name of the stored procedure An array of string to be assigned as the source columns of the stored procedure parameters A valid OracleCommand object Execute a stored procedure via an OracleCommand (that returns no resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid connection string for an OracleConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via an OracleCommand (that returns no resultset) against the specified OracleConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid OracleConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via an OracleCommand (that returns no resultset) against the specified OracleTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid OracleTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid connection string for an OracleConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleConnection using the dataRow column values as the store procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid OracleConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid OracleTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid connection string for an OracleConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A OracleDataReader containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid OracleConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A OracleDataReader containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid OracleTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A OracleDataReader containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a 1x1 resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid connection string for an OracleConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a 1x1 resultset) against the specified OracleConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid OracleConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a 1x1 resultset) against the specified OracleTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid OracleTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid OracleConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An XmlReader containing the resultset generated by the command Execute a stored procedure via an OracleCommand (that returns a resultset) against the specified OracleTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid OracleTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An XmlReader containing the resultset generated by the command OracleHelperParameterCache provides functions to leverage a static cache of procedure parameters, and the ability to discover parameters for stored procedures at run-time. Resolve at run time the appropriate set of OracleParameters for a stored procedure A valid OracleConnection object The name of the stored procedure Whether or not to include their return value parameter The parameter array discovered. Deep copy of cached OracleParameter array Add parameter array to the cache A valid connection string for an OracleConnection The stored procedure name or T-SQL command An array of OracleParamters to be cached Retrieve a parameter array from the cache A valid connection string for an OracleConnection The stored procedure name or T-SQL command An array of OracleParamters Retrieves the set of OracleParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid connection string for an OracleConnection The name of the stored procedure An array of OracleParameters Retrieves the set of OracleParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid connection string for an OracleConnection The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of OracleParameters Retrieves the set of OracleParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid OracleConnection object The name of the stored procedure An array of OracleParameters Retrieves the set of OracleParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid OracleConnection object The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of OracleParameters Retrieves the set of OracleParameters appropriate for the stored procedure A valid OracleConnection object The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of OracleParameters The NpgsqlHelper class is intended to encapsulate high performance, scalable best practices for common uses of NpgsqlClient This method is used to attach array of NpgsqlParameters to a NpgsqlCommand. This method will assign a value of DbNull to any parameter with a direction of InputOutput and a value of null. This behavior will prevent default values from being used, but this will be the less common case than an intended pure output parameter (derived as InputOutput) where the user provided no input value. The command to which the parameters will be added An array of NpgsqlParameters to be added to command This method assigns dataRow column values to an array of NpgsqlParameters Array of NpgsqlParameters to be assigned values The dataRow used to hold the stored procedure's parameter values This method assigns an array of values to an array of NpgsqlParameters Array of NpgsqlParameters to be assigned values Array of objects holding the values to be assigned This method opens (if necessary) and assigns a connection, transaction, command type and parameters to the provided command The NpgsqlCommand to be prepared A valid NpgsqlConnection, on which to execute this command A valid NpgsqlTransaction, or 'null' The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParameters to be associated with the command or 'null' if no parameters are required true if the connection was opened by the method, otherwose is false. Execute a NpgsqlCommand (that returns no resultset and takes no parameters) against the database specified in the connection string e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders"); A valid connection string for a NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a NpgsqlCommand (that returns no resultset) against the database specified in the connection string using the provided parameters e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders", new NpgsqlParameter("@prodid", 24)); A valid connection string for a NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via a NpgsqlCommand (that returns no resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(connString, "PublishOrders", 24, 36); A valid connection string for a NpgsqlConnection The name of the stored prcedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute a NpgsqlCommand (that returns no resultset and takes no parameters) against the provided NpgsqlConnection. e.g.: int result = ExecuteNonQuery(conn, CommandType.StoredProcedure, "PublishOrders"); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a NpgsqlCommand (that returns no resultset) against the specified NpgsqlConnection using the provided parameters. e.g.: int result = ExecuteNonQuery(conn, CommandType.StoredProcedure, "PublishOrders", new NpgsqlParameter("@prodid", 24)); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via a NpgsqlCommand (that returns no resultset) against the specified NpgsqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(conn, "PublishOrders", 24, 36); A valid NpgsqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute a NpgsqlCommand (that returns no resultset and takes no parameters) against the provided NpgsqlTransaction. e.g.: int result = ExecuteNonQuery(trans, CommandType.StoredProcedure, "PublishOrders"); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a NpgsqlCommand (that returns no resultset) against the specified NpgsqlTransaction using the provided parameters. e.g.: int result = ExecuteNonQuery(trans, CommandType.StoredProcedure, "GetOrders", new NpgsqlParameter("@prodid", 24)); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via a NpgsqlCommand (that returns no resultset) against the specified NpgsqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(conn, trans, "PublishOrders", 24, 36); A valid NpgsqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute a NpgsqlCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: DataSet ds = ExecuteDataset(connString, CommandType.StoredProcedure, "GetOrders"); A valid connection string for a NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: DataSet ds = ExecuteDataset(connString, CommandType.StoredProcedure, "GetOrders", new NpgsqlParameter("@prodid", 24)); A valid connection string for a NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(connString, "GetOrders", 24, 36); A valid connection string for a NpgsqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset and takes no parameters) against the provided NpgsqlConnection. e.g.: DataSet ds = ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders"); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset) against the specified NpgsqlConnection using the provided parameters. e.g.: DataSet ds = ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders", new NpgsqlParameter("@prodid", 24)); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the specified NpgsqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(conn, "GetOrders", 24, 36); A valid NpgsqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset and takes no parameters) against the provided NpgsqlTransaction. e.g.: DataSet ds = ExecuteDataset(trans, CommandType.StoredProcedure, "GetOrders"); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset) against the specified NpgsqlTransaction using the provided parameters. e.g.: DataSet ds = ExecuteDataset(trans, CommandType.StoredProcedure, "GetOrders", new NpgsqlParameter("@prodid", 24)); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the specified NpgsqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(trans, "GetOrders", 24, 36); A valid NpgsqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset) against the specified NpgsqlConnection using the provided parameters. e.g.: DataTable dt = ExecuteDatatable(conn, CommandType.StoredProcedure, "GetOrders", new NpgsqlParameter("@prodid", 24)); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command A datatable containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset) against the specified NpgsqlTransaction using the provided parameters. e.g.: DataTable dt = ExecuteDatatable(trans, CommandType.StoredProcedure, "GetOrders", new NpgsqlParameter("@prodid", 24)); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command A datatable containing the resultset generated by the command This enum is used to indicate whether the connection was provided by the caller, or created by NpgsqlHelper, so that we can set the appropriate CommandBehavior when calling ExecuteReader() Connection is owned and managed by NpgsqlHelper Connection is owned and managed by the caller Create and prepare a NpgsqlCommand, and call ExecuteReader with the appropriate CommandBehavior. If we created and opened the connection, we want the connection to be closed when the DataReader is closed. If the caller provided the connection, we want to leave it to them to manage. A valid NpgsqlConnection, on which to execute this command A valid NpgsqlTransaction, or 'null' The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParameters to be associated with the command or 'null' if no parameters are required Indicates whether the connection parameter was provided by the caller, or created by NpgsqlHelper NpgsqlDataReader containing the results of the command Execute a NpgsqlCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: NpgsqlDataReader dr = ExecuteReader(connString, CommandType.StoredProcedure, "GetOrders"); A valid connection string for a NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A NpgsqlDataReader containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: NpgsqlDataReader dr = ExecuteReader(connString, CommandType.StoredProcedure, "GetOrders", new NpgsqlParameter("@prodid", 24)); A valid connection string for a NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command A NpgsqlDataReader containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: NpgsqlDataReader dr = ExecuteReader(connString, "GetOrders", 24, 36); A valid connection string for a NpgsqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A NpgsqlDataReader containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset and takes no parameters) against the provided NpgsqlConnection. e.g.: NpgsqlDataReader dr = ExecuteReader(conn, CommandType.StoredProcedure, "GetOrders"); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A NpgsqlDataReader containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset) against the specified NpgsqlConnection using the provided parameters. e.g.: NpgsqlDataReader dr = ExecuteReader(conn, CommandType.StoredProcedure, "GetOrders", new NpgsqlParameter("@prodid", 24)); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command A NpgsqlDataReader containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the specified NpgsqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: NpgsqlDataReader dr = ExecuteReader(conn, "GetOrders", 24, 36); A valid NpgsqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A NpgsqlDataReader containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset and takes no parameters) against the provided NpgsqlTransaction. e.g.: NpgsqlDataReader dr = ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders"); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A NpgsqlDataReader containing the resultset generated by the command Execute a NpgsqlCommand (that returns a resultset) against the specified NpgsqlTransaction using the provided parameters. e.g.: NpgsqlDataReader dr = ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders", new NpgsqlParameter("@prodid", 24)); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command A NpgsqlDataReader containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the specified NpgsqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: NpgsqlDataReader dr = ExecuteReader(trans, "GetOrders", 24, 36); A valid NpgsqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A NpgsqlDataReader containing the resultset generated by the command Execute a NpgsqlCommand (that returns a 1x1 resultset and takes no parameters) against the database specified in the connection string. e.g.: int orderCount = (int)ExecuteScalar(connString, CommandType.StoredProcedure, "GetOrderCount"); A valid connection string for a NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a NpgsqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(connString, CommandType.StoredProcedure, "GetOrderCount", new NpgsqlParameter("@prodid", 24)); A valid connection string for a NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(connString, "GetOrderCount", 24, 36); A valid connection string for a NpgsqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute a NpgsqlCommand (that returns a 1x1 resultset and takes no parameters) against the provided NpgsqlConnection. e.g.: int orderCount = (int)ExecuteScalar(conn, CommandType.StoredProcedure, "GetOrderCount"); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a NpgsqlCommand (that returns a 1x1 resultset) against the specified NpgsqlConnection using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(conn, CommandType.StoredProcedure, "GetOrderCount", new NpgsqlParameter("@prodid", 24)); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a 1x1 resultset) against the specified NpgsqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(conn, "GetOrderCount", 24, 36); A valid NpgsqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute a NpgsqlCommand (that returns a 1x1 resultset and takes no parameters) against the provided NpgsqlTransaction. e.g.: int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount"); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a NpgsqlCommand (that returns a 1x1 resultset) against the specified NpgsqlTransaction using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount", new NpgsqlParameter("@prodid", 24)); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a 1x1 resultset) against the specified NpgsqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(trans, "GetOrderCount", 24, 36); A valid NpgsqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute a NpgsqlCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid connection string for a NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a NpgsqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new NpgsqlParameter("@prodid", 24)); A valid connection string for a NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of NpgsqlParamters used to execute the command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, 24); A valid connection string for a NpgsqlConnection The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Execute a NpgsqlCommand (that returns a resultset and takes no parameters) against the provided NpgsqlConnection. e.g.: FillDataset(conn, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a NpgsqlCommand (that returns a resultset) against the specified NpgsqlConnection using the provided parameters. e.g.: FillDataset(conn, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new NpgsqlParameter("@prodid", 24)); A valid NpgsqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of NpgsqlParamters used to execute the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the specified NpgsqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(conn, "GetOrders", ds, new string[] {"orders"}, 24, 36); A valid NpgsqlConnection The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Execute a NpgsqlCommand (that returns a resultset and takes no parameters) against the provided NpgsqlTransaction. e.g.: FillDataset(trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a NpgsqlCommand (that returns a resultset) against the specified NpgsqlTransaction using the provided parameters. e.g.: FillDataset(trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new NpgsqlParameter("@prodid", 24)); A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of NpgsqlParamters used to execute the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the specified NpgsqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(trans, "GetOrders", ds, new string[]{"orders"}, 24, 36); A valid NpgsqlTransaction The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Private helper method that execute a NpgsqlCommand (that returns a resultset) against the specified NpgsqlTransaction and NpgsqlConnection using the provided parameters. e.g.: FillDataset(conn, trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new NpgsqlParameter("@prodid", 24)); A valid NpgsqlConnection A valid NpgsqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of NpgsqlParamters used to execute the command Executes the respective command for each inserted, updated, or deleted row in the DataSet. e.g.: UpdateDataset(conn, insertCommand, deleteCommand, updateCommand, dataSet, "Order"); A valid transact-SQL statement or stored procedure to insert new records into the data source A valid transact-SQL statement or stored procedure to delete records from the data source A valid transact-SQL statement or stored procedure used to update records in the data source The DataSet used to update the data source The DataTable used to update the data source. Simplify the creation of a Npgsql command object by allowing a stored procedure and optional parameters to be provided e.g.: NpgsqlCommand command = CreateCommand(conn, "AddCustomer", "CustomerID", "CustomerName"); A valid NpgsqlConnection object The name of the stored procedure An array of string to be assigned as the source columns of the stored procedure parameters A valid NpgsqlCommand object Execute a stored procedure via a NpgsqlCommand (that returns no resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid connection string for a NpgsqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via a NpgsqlCommand (that returns no resultset) against the specified NpgsqlConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid NpgsqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via a NpgsqlCommand (that returns no resultset) against the specified NpgsqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid NpgsqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid connection string for a NpgsqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the specified NpgsqlConnection using the dataRow column values as the store procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid NpgsqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the specified NpgsqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid NpgsqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid connection string for a NpgsqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A NpgsqlDataReader containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the specified NpgsqlConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid NpgsqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A NpgsqlDataReader containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a resultset) against the specified NpgsqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid NpgsqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A NpgsqlDataReader containing the resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid connection string for a NpgsqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a 1x1 resultset) against the specified NpgsqlConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid NpgsqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a NpgsqlCommand (that returns a 1x1 resultset) against the specified NpgsqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid NpgsqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command NpgsqlHelperParameterCache provides functions to leverage a static cache of procedure parameters, and the ability to discover parameters for stored procedures at run-time. Resolve at run time the appropriate set of NpgsqlParameters for a stored procedure A valid NpgsqlConnection object The name of the stored procedure Whether or not to include their return value parameter The parameter array discovered. Deep copy of cached NpgsqlParameter array Add parameter array to the cache A valid connection string for a NpgsqlConnection The stored procedure name or T-SQL command An array of NpgsqlParamters to be cached Retrieve a parameter array from the cache A valid connection string for a NpgsqlConnection The stored procedure name or T-SQL command An array of NpgsqlParamters Retrieves the set of NpgsqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid connection string for a NpgsqlConnection The name of the stored procedure An array of NpgsqlParameters Retrieves the set of NpgsqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid connection string for a NpgsqlConnection The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of NpgsqlParameters Retrieves the set of NpgsqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid NpgsqlConnection object The name of the stored procedure An array of NpgsqlParameters Retrieves the set of NpgsqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid NpgsqlConnection object The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of NpgsqlParameters Retrieves the set of NpgsqlParameters appropriate for the stored procedure A valid NpgsqlConnection object The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of NpgsqlParameters The MySqlHelper class is intended to encapsulate high performance, scalable best practices for common uses of MySqlClient This method is used to attach array of MySqlParameters to a MySqlCommand. This method will assign a value of DbNull to any parameter with a direction of InputOutput and a value of null. This behavior will prevent default values from being used, but this will be the less common case than an intended pure output parameter (derived as InputOutput) where the user provided no input value. The command to which the parameters will be added An array of MySqlParameters to be added to command This method assigns dataRow column values to an array of MySqlParameters Array of MySqlParameters to be assigned values The dataRow used to hold the stored procedure's parameter values This method assigns an array of values to an array of MySqlParameters Array of MySqlParameters to be assigned values Array of objects holding the values to be assigned This method opens (if necessary) and assigns a connection, transaction, command type and parameters to the provided command The MySqlCommand to be prepared A valid MySqlConnection, on which to execute this command A valid MySqlTransaction, or 'null' The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParameters to be associated with the command or 'null' if no parameters are required true if the connection was opened by the method, otherwose is false. Execute a MySqlCommand (that returns no resultset and takes no parameters) against the database specified in the connection string e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders"); A valid connection string for a MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a MySqlCommand (that returns no resultset) against the database specified in the connection string using the provided parameters e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders", new MySqlParameter("@prodid", 24)); A valid connection string for a MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via a MySqlCommand (that returns no resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(connString, "PublishOrders", 24, 36); A valid connection string for a MySqlConnection The name of the stored prcedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute a MySqlCommand (that returns no resultset and takes no parameters) against the provided MySqlConnection. e.g.: int result = ExecuteNonQuery(conn, CommandType.StoredProcedure, "PublishOrders"); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a MySqlCommand (that returns no resultset) against the specified MySqlConnection using the provided parameters. e.g.: int result = ExecuteNonQuery(conn, CommandType.StoredProcedure, "PublishOrders", new MySqlParameter("@prodid", 24)); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via a MySqlCommand (that returns no resultset) against the specified MySqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(conn, "PublishOrders", 24, 36); A valid MySqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute a MySqlCommand (that returns no resultset and takes no parameters) against the provided MySqlTransaction. e.g.: int result = ExecuteNonQuery(trans, CommandType.StoredProcedure, "PublishOrders"); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a MySqlCommand (that returns no resultset) against the specified MySqlTransaction using the provided parameters. e.g.: int result = ExecuteNonQuery(trans, CommandType.StoredProcedure, "GetOrders", new MySqlParameter("@prodid", 24)); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via a MySqlCommand (that returns no resultset) against the specified MySqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(conn, trans, "PublishOrders", 24, 36); A valid MySqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute a MySqlCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: DataSet ds = ExecuteDataset(connString, CommandType.StoredProcedure, "GetOrders"); A valid connection string for a MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: DataSet ds = ExecuteDataset(connString, CommandType.StoredProcedure, "GetOrders", new MySqlParameter("@prodid", 24)); A valid connection string for a MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(connString, "GetOrders", 24, 36); A valid connection string for a MySqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset and takes no parameters) against the provided MySqlConnection. e.g.: DataSet ds = ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders"); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset) against the specified MySqlConnection using the provided parameters. e.g.: DataSet ds = ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders", new MySqlParameter("@prodid", 24)); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the specified MySqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(conn, "GetOrders", 24, 36); A valid MySqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset and takes no parameters) against the provided MySqlTransaction. e.g.: DataSet ds = ExecuteDataset(trans, CommandType.StoredProcedure, "GetOrders"); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset) against the specified MySqlTransaction using the provided parameters. e.g.: DataSet ds = ExecuteDataset(trans, CommandType.StoredProcedure, "GetOrders", new MySqlParameter("@prodid", 24)); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the specified MySqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(trans, "GetOrders", 24, 36); A valid MySqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset) against the specified MySqlConnection using the provided parameters. e.g.: DataTable dt = ExecuteDatatable(conn, CommandType.StoredProcedure, "GetOrders", new MySqlParameter("@prodid", 24)); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command A datatable containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset) against the specified MySqlTransaction using the provided parameters. e.g.: DataTable dt = ExecuteDatatable(trans, CommandType.StoredProcedure, "GetOrders", new MySqlParameter("@prodid", 24)); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command A datatable containing the resultset generated by the command This enum is used to indicate whether the connection was provided by the caller, or created by MySqlHelper, so that we can set the appropriate CommandBehavior when calling ExecuteReader() Connection is owned and managed by MySqlHelper Connection is owned and managed by the caller Create and prepare a MySqlCommand, and call ExecuteReader with the appropriate CommandBehavior. If we created and opened the connection, we want the connection to be closed when the DataReader is closed. If the caller provided the connection, we want to leave it to them to manage. A valid MySqlConnection, on which to execute this command A valid MySqlTransaction, or 'null' The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParameters to be associated with the command or 'null' if no parameters are required Indicates whether the connection parameter was provided by the caller, or created by MySqlHelper MySqlDataReader containing the results of the command Execute a MySqlCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: MySqlDataReader dr = ExecuteReader(connString, CommandType.StoredProcedure, "GetOrders"); A valid connection string for a MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A MySqlDataReader containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: MySqlDataReader dr = ExecuteReader(connString, CommandType.StoredProcedure, "GetOrders", new MySqlParameter("@prodid", 24)); A valid connection string for a MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command A MySqlDataReader containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: MySqlDataReader dr = ExecuteReader(connString, "GetOrders", 24, 36); A valid connection string for a MySqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A MySqlDataReader containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset and takes no parameters) against the provided MySqlConnection. e.g.: MySqlDataReader dr = ExecuteReader(conn, CommandType.StoredProcedure, "GetOrders"); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A MySqlDataReader containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset) against the specified MySqlConnection using the provided parameters. e.g.: MySqlDataReader dr = ExecuteReader(conn, CommandType.StoredProcedure, "GetOrders", new MySqlParameter("@prodid", 24)); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command A MySqlDataReader containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the specified MySqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: MySqlDataReader dr = ExecuteReader(conn, "GetOrders", 24, 36); A valid MySqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A MySqlDataReader containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset and takes no parameters) against the provided MySqlTransaction. e.g.: MySqlDataReader dr = ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders"); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A MySqlDataReader containing the resultset generated by the command Execute a MySqlCommand (that returns a resultset) against the specified MySqlTransaction using the provided parameters. e.g.: MySqlDataReader dr = ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders", new MySqlParameter("@prodid", 24)); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command A MySqlDataReader containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the specified MySqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: MySqlDataReader dr = ExecuteReader(trans, "GetOrders", 24, 36); A valid MySqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A MySqlDataReader containing the resultset generated by the command Execute a MySqlCommand (that returns a 1x1 resultset and takes no parameters) against the database specified in the connection string. e.g.: int orderCount = (int)ExecuteScalar(connString, CommandType.StoredProcedure, "GetOrderCount"); A valid connection string for a MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a MySqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(connString, CommandType.StoredProcedure, "GetOrderCount", new MySqlParameter("@prodid", 24)); A valid connection string for a MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(connString, "GetOrderCount", 24, 36); A valid connection string for a MySqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute a MySqlCommand (that returns a 1x1 resultset and takes no parameters) against the provided MySqlConnection. e.g.: int orderCount = (int)ExecuteScalar(conn, CommandType.StoredProcedure, "GetOrderCount"); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a MySqlCommand (that returns a 1x1 resultset) against the specified MySqlConnection using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(conn, CommandType.StoredProcedure, "GetOrderCount", new MySqlParameter("@prodid", 24)); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a 1x1 resultset) against the specified MySqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(conn, "GetOrderCount", 24, 36); A valid MySqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute a MySqlCommand (that returns a 1x1 resultset and takes no parameters) against the provided MySqlTransaction. e.g.: int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount"); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a MySqlCommand (that returns a 1x1 resultset) against the specified MySqlTransaction using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount", new MySqlParameter("@prodid", 24)); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a 1x1 resultset) against the specified MySqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(trans, "GetOrderCount", 24, 36); A valid MySqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute a MySqlCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid connection string for a MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a MySqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new MySqlParameter("@prodid", 24)); A valid connection string for a MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of MySqlParamters used to execute the command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a stored procedure via a MySqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, 24); A valid connection string for a MySqlConnection The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Execute a MySqlCommand (that returns a resultset and takes no parameters) against the provided MySqlConnection. e.g.: FillDataset(conn, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a MySqlCommand (that returns a resultset) against the specified MySqlConnection using the provided parameters. e.g.: FillDataset(conn, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new MySqlParameter("@prodid", 24)); A valid MySqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of MySqlParamters used to execute the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the specified MySqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(conn, "GetOrders", ds, new string[] {"orders"}, 24, 36); A valid MySqlConnection The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Execute a MySqlCommand (that returns a resultset and takes no parameters) against the provided MySqlTransaction. e.g.: FillDataset(trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a MySqlCommand (that returns a resultset) against the specified MySqlTransaction using the provided parameters. e.g.: FillDataset(trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new MySqlParameter("@prodid", 24)); A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of MySqlParamters used to execute the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the specified MySqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(trans, "GetOrders", ds, new string[]{"orders"}, 24, 36); A valid MySqlTransaction The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Private helper method that execute a MySqlCommand (that returns a resultset) against the specified MySqlTransaction and MySqlConnection using the provided parameters. e.g.: FillDataset(conn, trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new MySqlParameter("@prodid", 24)); A valid MySqlConnection A valid MySqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of MySqlParamters used to execute the command Executes the respective command for each inserted, updated, or deleted row in the DataSet. e.g.: UpdateDataset(conn, insertCommand, deleteCommand, updateCommand, dataSet, "Order"); A valid transact-SQL statement or stored procedure to insert new records into the data source A valid transact-SQL statement or stored procedure to delete records from the data source A valid transact-SQL statement or stored procedure used to update records in the data source The DataSet used to update the data source The DataTable used to update the data source. Simplify the creation of a MySql command object by allowing a stored procedure and optional parameters to be provided e.g.: MySqlCommand command = CreateCommand(conn, "AddCustomer", "CustomerID", "CustomerName"); A valid MySqlConnection object The name of the stored procedure An array of string to be assigned as the source columns of the stored procedure parameters A valid MySqlCommand object Execute a stored procedure via a MySqlCommand (that returns no resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid connection string for a MySqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via a MySqlCommand (that returns no resultset) against the specified MySqlConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid MySqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via a MySqlCommand (that returns no resultset) against the specified MySqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid MySqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid connection string for a MySqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the specified MySqlConnection using the dataRow column values as the store procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid MySqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the specified MySqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid MySqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid connection string for a MySqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A MySqlDataReader containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the specified MySqlConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid MySqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A MySqlDataReader containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a resultset) against the specified MySqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid MySqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A MySqlDataReader containing the resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid connection string for a MySqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a 1x1 resultset) against the specified MySqlConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid MySqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a MySqlCommand (that returns a 1x1 resultset) against the specified MySqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid MySqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command MySqlHelperParameterCache provides functions to leverage a static cache of procedure parameters, and the ability to discover parameters for stored procedures at run-time. Resolve at run time the appropriate set of MySqlParameters for a stored procedure A valid MySqlConnection object The name of the stored procedure Whether or not to include their return value parameter The parameter array discovered. Deep copy of cached MySqlParameter array Add parameter array to the cache A valid connection string for a MySqlConnection The stored procedure name or T-SQL command An array of MySqlParamters to be cached Retrieve a parameter array from the cache A valid connection string for a MySqlConnection The stored procedure name or T-SQL command An array of MySqlParamters Retrieves the set of MySqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid connection string for a MySqlConnection The name of the stored procedure An array of MySqlParameters Retrieves the set of MySqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid connection string for a MySqlConnection The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of MySqlParameters Retrieves the set of MySqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid MySqlConnection object The name of the stored procedure An array of MySqlParameters Retrieves the set of MySqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid MySqlConnection object The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of MySqlParameters Retrieves the set of MySqlParameters appropriate for the stored procedure A valid MySqlConnection object The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of MySqlParameters The SQLiteHelper class is intended to encapsulate high performance, scalable best practices for common uses of SQLiteClient This method is used to attach array of SQLiteParameters to a SQLiteCommand. This method will assign a value of DbNull to any parameter with a direction of InputOutput and a value of null. This behavior will prevent default values from being used, but this will be the less common case than an intended pure output parameter (derived as InputOutput) where the user provided no input value. The command to which the parameters will be added An array of SQLiteParameters to be added to command This method opens (if necessary) and assigns a connection, transaction, command type and parameters to the provided command The SQLiteCommand to be prepared A valid SQLiteConnection, on which to execute this command A valid SQLiteTransaction, or 'null' The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParameters to be associated with the command or 'null' if no parameters are required true if the connection was opened by the method, otherwose is false. Execute a SQLiteCommand (that returns no resultset and takes no parameters) against the database specified in the connection string e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders"); A valid connection string for a SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a SQLiteCommand (that returns no resultset) against the database specified in the connection string using the provided parameters e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders", new SQLiteParameter("@prodid", 24)); A valid connection string for a SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command An int representing the number of rows affected by the command Execute a SQLiteCommand (that returns no resultset and takes no parameters) against the provided SQLiteConnection. e.g.: int result = ExecuteNonQuery(conn, CommandType.StoredProcedure, "PublishOrders"); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a SQLiteCommand (that returns no resultset) against the specified SQLiteConnection using the provided parameters. e.g.: int result = ExecuteNonQuery(conn, CommandType.StoredProcedure, "PublishOrders", new SQLiteParameter("@prodid", 24)); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command An int representing the number of rows affected by the command Execute a SQLiteCommand (that returns no resultset and takes no parameters) against the provided SQLiteTransaction. e.g.: int result = ExecuteNonQuery(trans, CommandType.StoredProcedure, "PublishOrders"); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a SQLiteCommand (that returns no resultset) against the specified SQLiteTransaction using the provided parameters. e.g.: int result = ExecuteNonQuery(trans, CommandType.StoredProcedure, "GetOrders", new SQLiteParameter("@prodid", 24)); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command An int representing the number of rows affected by the command Execute a SQLiteCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: DataSet ds = ExecuteDataset(connString, CommandType.StoredProcedure, "GetOrders"); A valid connection string for a SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: DataSet ds = ExecuteDataset(connString, CommandType.StoredProcedure, "GetOrders", new SQLiteParameter("@prodid", 24)); A valid connection string for a SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command A dataset containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset and takes no parameters) against the provided SQLiteConnection. e.g.: DataSet ds = ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders"); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset) against the specified SQLiteConnection using the provided parameters. e.g.: DataSet ds = ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders", new SQLiteParameter("@prodid", 24)); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command A dataset containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset and takes no parameters) against the provided SQLiteTransaction. e.g.: DataSet ds = ExecuteDataset(trans, CommandType.StoredProcedure, "GetOrders"); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset) against the specified SQLiteTransaction using the provided parameters. e.g.: DataSet ds = ExecuteDataset(trans, CommandType.StoredProcedure, "GetOrders", new SQLiteParameter("@prodid", 24)); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command A dataset containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset) against the specified SQLiteConnection using the provided parameters. e.g.: DataTable dt = ExecuteDatatable(conn, CommandType.StoredProcedure, "GetOrders", new SQLiteParameter("@prodid", 24)); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command A datatable containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset) against the specified SQLiteTransaction using the provided parameters. e.g.: DataTable dt = ExecuteDatatable(trans, CommandType.StoredProcedure, "GetOrders", new SQLiteParameter("@prodid", 24)); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command A datatable containing the resultset generated by the command This enum is used to indicate whether the connection was provided by the caller, or created by SQLiteHelper, so that we can set the appropriate CommandBehavior when calling ExecuteReader() Connection is owned and managed by SQLiteHelper Connection is owned and managed by the caller Create and prepare a SQLiteCommand, and call ExecuteReader with the appropriate CommandBehavior. If we created and opened the connection, we want the connection to be closed when the DataReader is closed. If the caller provided the connection, we want to leave it to them to manage. A valid SQLiteConnection, on which to execute this command A valid SQLiteTransaction, or 'null' The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParameters to be associated with the command or 'null' if no parameters are required Indicates whether the connection parameter was provided by the caller, or created by SQLiteHelper SQLiteDataReader containing the results of the command Execute a SQLiteCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: SQLiteDataReader dr = ExecuteReader(connString, CommandType.StoredProcedure, "GetOrders"); A valid connection string for a SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A SQLiteDataReader containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: SQLiteDataReader dr = ExecuteReader(connString, CommandType.StoredProcedure, "GetOrders", new SQLiteParameter("@prodid", 24)); A valid connection string for a SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command A SQLiteDataReader containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset and takes no parameters) against the provided SQLiteConnection. e.g.: SQLiteDataReader dr = ExecuteReader(conn, CommandType.StoredProcedure, "GetOrders"); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A SQLiteDataReader containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset) against the specified SQLiteConnection using the provided parameters. e.g.: SQLiteDataReader dr = ExecuteReader(conn, CommandType.StoredProcedure, "GetOrders", new SQLiteParameter("@prodid", 24)); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command A SQLiteDataReader containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset and takes no parameters) against the provided SQLiteTransaction. e.g.: SQLiteDataReader dr = ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders"); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A SQLiteDataReader containing the resultset generated by the command Execute a SQLiteCommand (that returns a resultset) against the specified SQLiteTransaction using the provided parameters. e.g.: SQLiteDataReader dr = ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders", new SQLiteParameter("@prodid", 24)); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command A SQLiteDataReader containing the resultset generated by the command Execute a SQLiteCommand (that returns a 1x1 resultset and takes no parameters) against the database specified in the connection string. e.g.: int orderCount = (int)ExecuteScalar(connString, CommandType.StoredProcedure, "GetOrderCount"); A valid connection string for a SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a SQLiteCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(connString, CommandType.StoredProcedure, "GetOrderCount", new SQLiteParameter("@prodid", 24)); A valid connection string for a SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a SQLiteCommand (that returns a 1x1 resultset and takes no parameters) against the provided SQLiteConnection. e.g.: int orderCount = (int)ExecuteScalar(conn, CommandType.StoredProcedure, "GetOrderCount"); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a SQLiteCommand (that returns a 1x1 resultset) against the specified SQLiteConnection using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(conn, CommandType.StoredProcedure, "GetOrderCount", new SQLiteParameter("@prodid", 24)); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a SQLiteCommand (that returns a 1x1 resultset and takes no parameters) against the provided SQLiteTransaction. e.g.: int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount"); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a SQLiteCommand (that returns a 1x1 resultset) against the specified SQLiteTransaction using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount", new SQLiteParameter("@prodid", 24)); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a SQLiteCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid connection string for a SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a SQLiteCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new SQLiteParameter("@prodid", 24)); A valid connection string for a SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SQLiteParamters used to execute the command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a SQLiteCommand (that returns a resultset and takes no parameters) against the provided SQLiteConnection. e.g.: FillDataset(conn, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a SQLiteCommand (that returns a resultset) against the specified SQLiteConnection using the provided parameters. e.g.: FillDataset(conn, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new SQLiteParameter("@prodid", 24)); A valid SQLiteConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of SQLiteParamters used to execute the command Execute a SQLiteCommand (that returns a resultset and takes no parameters) against the provided SQLiteTransaction. e.g.: FillDataset(trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a SQLiteCommand (that returns a resultset) against the specified SQLiteTransaction using the provided parameters. e.g.: FillDataset(trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new SQLiteParameter("@prodid", 24)); A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of SQLiteParamters used to execute the command Private helper method that execute a SQLiteCommand (that returns a resultset) against the specified SQLiteTransaction and SQLiteConnection using the provided parameters. e.g.: FillDataset(conn, trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new SQLiteParameter("@prodid", 24)); A valid SQLiteConnection A valid SQLiteTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of SQLiteParamters used to execute the command Executes the respective command for each inserted, updated, or deleted row in the DataSet. e.g.: UpdateDataset(conn, insertCommand, deleteCommand, updateCommand, dataSet, "Order"); A valid transact-SQL statement or stored procedure to insert new records into the data source A valid transact-SQL statement or stored procedure to delete records from the data source A valid transact-SQL statement or stored procedure used to update records in the data source The DataSet used to update the data source The DataTable used to update the data source. The SqlHelper class is intended to encapsulate high performance, scalable best practices for common uses of SqlClient This method is used to attach array of SqlParameters to a SqlCommand. This method will assign a value of DbNull to any parameter with a direction of InputOutput and a value of null. This behavior will prevent default values from being used, but this will be the less common case than an intended pure output parameter (derived as InputOutput) where the user provided no input value. The command to which the parameters will be added An array of SqlParameters to be added to command This method assigns dataRow column values to an array of SqlParameters Array of SqlParameters to be assigned values The dataRow used to hold the stored procedure's parameter values This method assigns an array of values to an array of SqlParameters Array of SqlParameters to be assigned values Array of objects holding the values to be assigned This method opens (if necessary) and assigns a connection, transaction, command type and parameters to the provided command The SqlCommand to be prepared A valid SqlConnection, on which to execute this command A valid SqlTransaction, or 'null' The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParameters to be associated with the command or 'null' if no parameters are required true if the connection was opened by the method, otherwose is false. Execute a SqlCommand (that returns no resultset and takes no parameters) against the database specified in the connection string e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders"); A valid connection string for a SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a SqlCommand (that returns no resultset) against the database specified in the connection string using the provided parameters e.g.: int result = ExecuteNonQuery(connString, CommandType.StoredProcedure, "PublishOrders", new SqlParameter("@prodid", 24)); A valid connection string for a SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via a SqlCommand (that returns no resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(connString, "PublishOrders", 24, 36); A valid connection string for a SqlConnection The name of the stored prcedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute a SqlCommand (that returns no resultset and takes no parameters) against the provided SqlConnection. e.g.: int result = ExecuteNonQuery(conn, CommandType.StoredProcedure, "PublishOrders"); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a SqlCommand (that returns no resultset) against the specified SqlConnection using the provided parameters. e.g.: int result = ExecuteNonQuery(conn, CommandType.StoredProcedure, "PublishOrders", new SqlParameter("@prodid", 24)); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via a SqlCommand (that returns no resultset) against the specified SqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(conn, "PublishOrders", 24, 36); A valid SqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute a SqlCommand (that returns no resultset and takes no parameters) against the provided SqlTransaction. e.g.: int result = ExecuteNonQuery(trans, CommandType.StoredProcedure, "PublishOrders"); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An int representing the number of rows affected by the command Execute a SqlCommand (that returns no resultset) against the specified SqlTransaction using the provided parameters. e.g.: int result = ExecuteNonQuery(trans, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command An int representing the number of rows affected by the command Execute a stored procedure via a SqlCommand (that returns no resultset) against the specified SqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int result = ExecuteNonQuery(conn, trans, "PublishOrders", 24, 36); A valid SqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An int representing the number of rows affected by the command Execute a SqlCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: DataSet ds = ExecuteDataset(connString, CommandType.StoredProcedure, "GetOrders"); A valid connection string for a SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a SqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: DataSet ds = ExecuteDataset(connString, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid connection string for a SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(connString, "GetOrders", 24, 36); A valid connection string for a SqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlConnection. e.g.: DataSet ds = ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders"); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a SqlCommand (that returns a resultset) against the specified SqlConnection using the provided parameters. e.g.: DataSet ds = ExecuteDataset(conn, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(conn, "GetOrders", 24, 36); A valid SqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlTransaction. e.g.: DataSet ds = ExecuteDataset(trans, CommandType.StoredProcedure, "GetOrders"); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset containing the resultset generated by the command Execute a SqlCommand (that returns a resultset) against the specified SqlTransaction using the provided parameters. e.g.: DataSet ds = ExecuteDataset(trans, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command A dataset containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: DataSet ds = ExecuteDataset(trans, "GetOrders", 24, 36); A valid SqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute a SqlCommand (that returns a resultset) against the specified SqlConnection using the provided parameters. e.g.: DataTable dt = ExecuteDatatable(conn, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command A datatable containing the resultset generated by the command Execute a SqlCommand (that returns a resultset) against the specified SqlTransaction using the provided parameters. e.g.: DataTable dt = ExecuteDatatable(trans, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command A datatable containing the resultset generated by the command This enum is used to indicate whether the connection was provided by the caller, or created by SqlHelper, so that we can set the appropriate CommandBehavior when calling ExecuteReader() Connection is owned and managed by SqlHelper Connection is owned and managed by the caller Create and prepare a SqlCommand, and call ExecuteReader with the appropriate CommandBehavior. If we created and opened the connection, we want the connection to be closed when the DataReader is closed. If the caller provided the connection, we want to leave it to them to manage. A valid SqlConnection, on which to execute this command A valid SqlTransaction, or 'null' The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParameters to be associated with the command or 'null' if no parameters are required Indicates whether the connection parameter was provided by the caller, or created by SqlHelper SqlDataReader containing the results of the command Execute a SqlCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: SqlDataReader dr = ExecuteReader(connString, CommandType.StoredProcedure, "GetOrders"); A valid connection string for a SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A SqlDataReader containing the resultset generated by the command Execute a SqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: SqlDataReader dr = ExecuteReader(connString, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid connection string for a SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command A SqlDataReader containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: SqlDataReader dr = ExecuteReader(connString, "GetOrders", 24, 36); A valid connection string for a SqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A SqlDataReader containing the resultset generated by the command Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlConnection. e.g.: SqlDataReader dr = ExecuteReader(conn, CommandType.StoredProcedure, "GetOrders"); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A SqlDataReader containing the resultset generated by the command Execute a SqlCommand (that returns a resultset) against the specified SqlConnection using the provided parameters. e.g.: SqlDataReader dr = ExecuteReader(conn, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command A SqlDataReader containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: SqlDataReader dr = ExecuteReader(conn, "GetOrders", 24, 36); A valid SqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A SqlDataReader containing the resultset generated by the command Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlTransaction. e.g.: SqlDataReader dr = ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders"); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A SqlDataReader containing the resultset generated by the command Execute a SqlCommand (that returns a resultset) against the specified SqlTransaction using the provided parameters. e.g.: SqlDataReader dr = ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command A SqlDataReader containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: SqlDataReader dr = ExecuteReader(trans, "GetOrders", 24, 36); A valid SqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A SqlDataReader containing the resultset generated by the command Execute a SqlCommand (that returns a 1x1 resultset and takes no parameters) against the database specified in the connection string. e.g.: int orderCount = (int)ExecuteScalar(connString, CommandType.StoredProcedure, "GetOrderCount"); A valid connection string for a SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a SqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(connString, CommandType.StoredProcedure, "GetOrderCount", new SqlParameter("@prodid", 24)); A valid connection string for a SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(connString, "GetOrderCount", 24, 36); A valid connection string for a SqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute a SqlCommand (that returns a 1x1 resultset and takes no parameters) against the provided SqlConnection. e.g.: int orderCount = (int)ExecuteScalar(conn, CommandType.StoredProcedure, "GetOrderCount"); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a SqlCommand (that returns a 1x1 resultset) against the specified SqlConnection using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(conn, CommandType.StoredProcedure, "GetOrderCount", new SqlParameter("@prodid", 24)); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the specified SqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(conn, "GetOrderCount", 24, 36); A valid SqlConnection The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute a SqlCommand (that returns a 1x1 resultset and takes no parameters) against the provided SqlTransaction. e.g.: int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount"); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An object containing the value in the 1x1 resultset generated by the command Execute a SqlCommand (that returns a 1x1 resultset) against the specified SqlTransaction using the provided parameters. e.g.: int orderCount = (int)ExecuteScalar(trans, CommandType.StoredProcedure, "GetOrderCount", new SqlParameter("@prodid", 24)); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the specified SqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: int orderCount = (int)ExecuteScalar(trans, "GetOrderCount", 24, 36); A valid SqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure An object containing the value in the 1x1 resultset generated by the command Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlConnection. e.g.: XmlReader r = ExecuteXmlReader(conn, CommandType.StoredProcedure, "GetOrders"); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command using "FOR XML AUTO" An XmlReader containing the resultset generated by the command Execute a SqlCommand (that returns a resultset) against the specified SqlConnection using the provided parameters. e.g.: XmlReader r = ExecuteXmlReader(conn, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command using "FOR XML AUTO" An array of SqlParamters used to execute the command An XmlReader containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: XmlReader r = ExecuteXmlReader(conn, "GetOrders", 24, 36); A valid SqlConnection The name of the stored procedure using "FOR XML AUTO" An array of objects to be assigned as the input values of the stored procedure An XmlReader containing the resultset generated by the command Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlTransaction. e.g.: XmlReader r = ExecuteXmlReader(trans, CommandType.StoredProcedure, "GetOrders"); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command using "FOR XML AUTO" An XmlReader containing the resultset generated by the command Execute a SqlCommand (that returns a resultset) against the specified SqlTransaction using the provided parameters. e.g.: XmlReader r = ExecuteXmlReader(trans, CommandType.StoredProcedure, "GetOrders", new SqlParameter("@prodid", 24)); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command using "FOR XML AUTO" An array of SqlParamters used to execute the command An XmlReader containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: XmlReader r = ExecuteXmlReader(trans, "GetOrders", 24, 36); A valid SqlTransaction The name of the stored procedure An array of objects to be assigned as the input values of the stored procedure A dataset containing the resultset generated by the command Execute a SqlCommand (that returns a resultset and takes no parameters) against the database specified in the connection string. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid connection string for a SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a SqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameters. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new SqlParameter("@prodid", 24)); A valid connection string for a SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command An array of SqlParamters used to execute the command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a stored procedure via a SqlCommand (that returns a resultset) against the database specified in the connection string using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(connString, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, 24); A valid connection string for a SqlConnection The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlConnection. e.g.: FillDataset(conn, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a SqlCommand (that returns a resultset) against the specified SqlConnection using the provided parameters. e.g.: FillDataset(conn, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new SqlParameter("@prodid", 24)); A valid SqlConnection The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of SqlParamters used to execute the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlConnection using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(conn, "GetOrders", ds, new string[] {"orders"}, 24, 36); A valid SqlConnection The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Execute a SqlCommand (that returns a resultset and takes no parameters) against the provided SqlTransaction. e.g.: FillDataset(trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) Execute a SqlCommand (that returns a resultset) against the specified SqlTransaction using the provided parameters. e.g.: FillDataset(trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new SqlParameter("@prodid", 24)); A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of SqlParamters used to execute the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlTransaction using the provided parameter values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. This method provides no access to output parameters or the stored procedure's return value parameter. e.g.: FillDataset(trans, "GetOrders", ds, new string[]{"orders"}, 24, 36); A valid SqlTransaction The name of the stored procedure A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of objects to be assigned as the input values of the stored procedure Private helper method that execute a SqlCommand (that returns a resultset) against the specified SqlTransaction and SqlConnection using the provided parameters. e.g.: FillDataset(conn, trans, CommandType.StoredProcedure, "GetOrders", ds, new string[] {"orders"}, new SqlParameter("@prodid", 24)); A valid SqlConnection A valid SqlTransaction The CommandType (stored procedure, text, etc.) The stored procedure name or T-SQL command A dataset wich will contain the resultset generated by the command This array will be used to create table mappings allowing the DataTables to be referenced by a user defined name (probably the actual table name) An array of SqlParamters used to execute the command Executes the respective command for each inserted, updated, or deleted row in the DataSet. e.g.: UpdateDataset(conn, insertCommand, deleteCommand, updateCommand, dataSet, "Order"); A valid transact-SQL statement or stored procedure to insert new records into the data source A valid transact-SQL statement or stored procedure to delete records from the data source A valid transact-SQL statement or stored procedure used to update records in the data source The DataSet used to update the data source The DataTable used to update the data source. Simplify the creation of a Sql command object by allowing a stored procedure and optional parameters to be provided e.g.: SqlCommand command = CreateCommand(conn, "AddCustomer", "CustomerID", "CustomerName"); A valid SqlConnection object The name of the stored procedure An array of string to be assigned as the source columns of the stored procedure parameters A valid SqlCommand object Execute a stored procedure via a SqlCommand (that returns no resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid connection string for a SqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via a SqlCommand (that returns no resultset) against the specified SqlConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid SqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via a SqlCommand (that returns no resultset) against the specified SqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid SqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An int representing the number of rows affected by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid connection string for a SqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlConnection using the dataRow column values as the store procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid SqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values. A valid SqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A dataset containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid connection string for a SqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A SqlDataReader containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid SqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A SqlDataReader containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid SqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. A SqlDataReader containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid connection string for a SqlConnection The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the specified SqlConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid SqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a 1x1 resultset) against the specified SqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid SqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An object containing the value in the 1x1 resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlConnection using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid SqlConnection object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An XmlReader containing the resultset generated by the command Execute a stored procedure via a SqlCommand (that returns a resultset) against the specified SqlTransaction using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on parameter order. A valid SqlTransaction object The name of the stored procedure The dataRow used to hold the stored procedure's parameter values. An XmlReader containing the resultset generated by the command SqlHelperParameterCache provides functions to leverage a static cache of procedure parameters, and the ability to discover parameters for stored procedures at run-time. Resolve at run time the appropriate set of SqlParameters for a stored procedure A valid SqlConnection object The name of the stored procedure Whether or not to include their return value parameter The parameter array discovered. Deep copy of cached SqlParameter array Add parameter array to the cache A valid connection string for a SqlConnection The stored procedure name or T-SQL command An array of SqlParamters to be cached Retrieve a parameter array from the cache A valid connection string for a SqlConnection The stored procedure name or T-SQL command An array of SqlParamters Retrieves the set of SqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid connection string for a SqlConnection The name of the stored procedure An array of SqlParameters Retrieves the set of SqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid connection string for a SqlConnection The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of SqlParameters Retrieves the set of SqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid SqlConnection object The name of the stored procedure An array of SqlParameters Retrieves the set of SqlParameters appropriate for the stored procedure This method will query the database for this information, and then store it in a cache for future requests. A valid SqlConnection object The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of SqlParameters Retrieves the set of SqlParameters appropriate for the stored procedure A valid SqlConnection object The name of the stored procedure A bool value indicating whether the return value parameter should be included in the results An array of SqlParameters 数据库接口 数据库类型 参数前缀(默认:oracle[:], sql server[@]) 数据源的连接串 数据源的连接状态 数据库的连接 事物 获取或设置在终止执行命令的尝试并生成错误之前的等待时间(以秒为单位)。 null 为默认值(30秒), 0 为不限制。 统一回滚 打开数据库连接 数据库连接字符串 是否开启事物 打开数据库连接 是否开启事物 开启事务 在事务中设置保存点 回滚事务到保存点 回滚事务 提交事务 关闭数据库连接 执行非查询SQL语句 SQL 参数 受影响行数 执行非查询存储过程 存储过程名 参数 受影响行数 执行非查询SQL SQL SQL类别 参数 受影响行数 执行查询SQL语句 SQL 参数 查询结果(DataSet) 执行查询存储过程 存储过程名 参数 查询结果(DataSet) 执行查询SQL SQL SQL类别 参数 查询结果(DataSet) 执行查询SQL语句 SQL 表名 参数 查询结果(DataSet) 执行查询存储过程 存储过程名 表名 参数 查询结果(DataSet) 执行查询SQL SQL SQL类别 表名 参数 查询结果(DataSet) 执行查询SQL语句 SQL 参数 查询结果(DataSet) 执行查询存储过程 存储过程名 参数 查询结果(DataSet) 执行查询SQL语句 SQL SQL类别 参数 查询结果(DataSet) 执行查询SQL语句 SQL 表名 参数 查询结果(DataSet) 执行查询存储过程 存储过程名 表名 参数 查询结果(DataSet) 执行查询SQL语句 SQL SQL类别 表名 参数 查询结果(DataTable) 执行查询SQL语句 SQL 参数 查询结果(DataReader) 执行查询存储过程 存储过程名 参数 查询结果(DataReader) 执行查询SQL SQL SQL类别 参数 查询结果(DataReader) 执行查询SQL语句(第一行第一列) SQL 参数 查询结果(第一行第一列) 执行查询存储过程(第一行第一列) 存储过程名 参数 查询结果(第一行第一列) 执行查询SQL语句(第一行第一列) SQL SQL类别 参数 查询结果(第一行第一列) 执行查询SQL语句(第一行第一列) SQL 参数 查询结果(第一行第一列) 执行查询存储过程(第一行第一列) 存储过程名 参数 查询结果(第一行第一列) 执行查询SQL(第一行第一列) SQL SQL类别 参数 查询结果(第一行第一列) 数据库接口 自动生成insert语句 根据参数插入数据 根据数据源和参数批量插入数据 自动生成update语句 根据参数更新数据 根据数据源和参数批量更新数据 分页查询(sql中不能包含rowno字段) 分页查询(sql中不能包含rowno字段) 分页查询(sql中不能包含rowno字段) 分页查询(rows=0时,查询总行数) 获取总条数SQL(sql中不能包含rowno字段) 获取总条数SQL(sql中不能包含rowno字段) 获取分页查询SQL(sql中不能包含rowno字段) 获取分页查询SQL(sql中不能包含rowno字段) 分页查询(sql中不能包含rowno字段) 分页查询(sql中不能包含rowno字段) 分页查询(sql中不能包含rowno字段) 分页查询(rows=0时,查询总行数) 获取总条数SQL(sql中不能包含rowno字段) 获取分页查询SQL(sql中不能包含rowno字段) 获取分页查询SQL(sql中不能包含rowno字段) 根据 ParameterName 设置 DbParameterName,CDAParameterName 根据 ParameterName 设置 DbParameterName,CDAParameterName;并替换SQL文中的参数 PostgreSQL 数据库操作类 PostgreSQL 数据库连接字符串模板 数据库参数前缀 PostgreSQL 数据库连接字符串模板 NpgsqlConnection NpgsqlTransaction PostgreSQL版本 PostgreSQL 数据库 PostgreSQL 数据库 数据库连接字符串 PostgreSQL 数据库 初始化 新建数据库连接 在事务中设置保存点 回滚事务到保存点 执行非查询SQL SQL SQL类别 参数 受影响行数 执行查询SQL SQL SQL类别 表名 参数 查询结果(DataSet) 执行查询SQL语句 SQL SQL类别 表名 参数 查询结果(DataTable) 执行查询SQL SQL SQL类别 参数 查询结果(DataReader) 执行查询SQL语句(第一行第一列) SQL SQL类别 参数 查询结果(第一行第一列) 获取分页查询SQL 获取分页查询SQL 获取执行SQL 获取执行SQL 获取执行存储过程 转换Sql参数 获取PostgreSQL参数 获取NpgsqlDbType NpgsqlDbType 转换为DataType MySql 数据库操作类 MySql 数据库连接字符串模板 数据库参数前缀 MySql 数据库连接字符串模板 MySql连接 MySql事务 MySql版本 MySql 数据库 MySql 数据库 数据库连接字符串 MySql 数据库 初始化 新建数据库连接 执行非查询SQL SQL SQL类别 参数 受影响行数 执行查询SQL SQL SQL类别 表名 参数 查询结果(DataSet) 执行查询SQL语句 SQL SQL类别 表名 参数 查询结果(DataTable) 执行查询SQL SQL SQL类别 参数 查询结果(DataReader) 执行查询SQL语句(第一行第一列) SQL SQL类别 参数 查询结果(第一行第一列) 获取分页查询SQL 获取分页查询SQL 获取执行SQL 获取执行SQL 获取执行存储过程 转换Sql参数 获取MySql参数 获取MySqlDbType MySqlDbType 转换为DataType Specifies MySQL specific data type of a field, property, for use in a MySql.Data.MySqlClient.MySqlParameter. MySql.Data.MySqlClient.MySqlDbType.Decimal A fixed precision and scale numeric value between -1038 -1 and 10 38 -1. MySql.Data.MySqlClient.MySqlDbType.Byte the signed range is -128 to 127. The unsigned range is 0 to 255. MySql.Data.MySqlClient.MySqlDbType.Int16 A 16-bit signed integer. The signed range is -32768 to 32767. The unsigned range is 0 to 65535 MySql.Data.MySqlClient.MySqlDbType.Int32 A 32-bit signed integer System.Single A small (single-precision) floating-point number. Allowable values are -3.402823466E+38 to -1.175494351E-38, 0, and 1.175494351E-38 to 3.402823466E+38. MySql.Data.MySqlClient.MySqlDbType.Double A normal-size (double-precision) floating-point number. Allowable values are -1.7976931348623157E+308 to -2.2250738585072014E-308, 0, and 2.2250738585072014E-308 to 1.7976931348623157E+308. A timestamp. The range is '1970-01-01 00:00:00' to sometime in the year 2037 MySql.Data.MySqlClient.MySqlDbType.Int64 A 64-bit signed integer. Specifies a 24 (3 byte) signed or unsigned value. Date The supported range is '1000-01-01' to '9999-12-31'. Time The range is '-838:59:59' to '838:59:59'. DateTime The supported range is '1000-01-01 00:00:00' to '9999-12-31 23:59:59'. Datetime The supported range is '1000-01-01 00:00:00' to '9999-12-31 23:59:59'. A year in 2- or 4-digit format (default is 4-digit). The allowable values are 1901 to 2155, 0000 in the 4-digit year format, and 1970-2069 if you use the 2-digit format (70-69). Obsolete Use Datetime or Date type A variable-length string containing 0 to 65535 characters Bit-field data type JSON New Decimal An enumeration. A string object that can have only one value, chosen from the list of values 'value1', 'value2', ..., NULL or the special "" error value. An ENUM can have a maximum of 65535 distinct values A set. A string object that can have zero or more values, each of which must be chosen from the list of values 'value1', 'value2', ... A SET can have a maximum of 64 members. A binary column with a maximum length of 255 (2^8 - 1) characters A binary column with a maximum length of 16777215 (2^24 - 1) bytes. A binary column with a maximum length of 4294967295 or 4G (2^32 - 1) bytes. A binary column with a maximum length of 65535 (2^16 - 1) bytes. A variable-length string containing 0 to 255 bytes. A fixed-length string. Geometric (GIS) data type. Unsigned 8-bit value. Unsigned 16-bit value. Unsigned 32-bit value. Unsigned 64-bit value. Unsigned 24-bit value. Fixed length binary string. Variable length binary string. A text column with a maximum length of 255 (2^8 - 1) characters. A text column with a maximum length of 16777215 (2^24 - 1) characters. A text column with a maximum length of 4294967295 or 4G (2^32 - 1) characters. A text column with a maximum length of 65535 (2^16 - 1) characters. A guid column. Oracle 数据库操作类 Oracle 数据库连接字符串模板 数据库参数前缀 Oracle 数据库连接字符串模板 OracleConnection OracleTransaction Oracle版本 Oracle 数据库 Oracle 数据库 数据库连接字符串 Oracle 数据库 初始化 新建数据库连接 在事务中设置保存点 回滚事务到保存点 执行非查询SQL SQL SQL类别 参数 受影响行数 执行查询SQL SQL SQL类别 表名 参数 查询结果(DataSet) 执行查询SQL语句 SQL SQL类别 表名 参数 查询结果(DataTable) 执行查询SQL SQL SQL类别 参数 查询结果(DataReader) 执行查询SQL语句(第一行第一列) SQL SQL类别 参数 查询结果(第一行第一列) 获取分页查询SQL 获取分页查询SQL 获取执行SQL 获取执行SQL 获取执行存储过程 转换Oracle参数 获取Oracle参数 获取OracleDbType OracleDbType 转换为DataType Oracle数据类型 SQLite 数据库操作类 SQLite 数据库连接字符串模板 数据库参数前缀 SQLite 数据库连接字符串模板 SQLiteConnection SQLiteTransaction SQLite版本 SQLite 数据库 SQLite 数据库 数据库连接字符串 SQLite 数据库 初始化 新建数据库连接 执行非查询SQL SQL SQL类别 参数 受影响行数 执行查询SQL SQL SQL类别 表名 参数 查询结果(DataSet) 执行查询SQL语句 SQL SQL类别 表名 参数 查询结果(DataTable) 执行查询SQL SQL SQL类别 参数 查询结果(DataReader) 执行查询SQL语句(第一行第一列) SQL SQL类别 参数 查询结果(第一行第一列) 获取分页查询SQL 获取分页查询SQL 获取执行SQL 获取执行SQL 获取执行存储过程 转换SQLite参数 获取SQLite参数 获取SQLiteDbType SQLiteDbType 转换为DataType 修改数据库密码 SQLServer 数据库操作类 SQLServer 数据库连接字符串模板 数据库参数前缀 SQLServer 数据库连接字符串模板 SqlConnection SqlTransaction SQLServer版本 SQLServer 数据库 SQLServer 数据库 数据库连接字符串 SQLServer 数据库 server:ip[\sid][,port] 初始化 新建数据库连接 在事务中设置保存点 回滚事务到保存点 执行非查询SQL SQL SQL类别 参数 受影响行数 执行查询SQL SQL SQL类别 表名 参数 查询结果(DataSet) 执行查询SQL语句 SQL SQL类别 表名 参数 查询结果(DataTable) 执行查询SQL SQL SQL类别 参数 查询结果(DataReader) 执行查询SQL语句(第一行第一列) SQL SQL类别 参数 查询结果(第一行第一列) 获取分页查询SQL 获取分页查询SQL 获取执行SQL 获取执行SQL 获取执行存储过程 转换Sql参数 获取SQLServer参数 获取SqlDbType SqlDbType 转换为DataType 写入INI文件 要写入的段落名 要写入的键,如果该key存在则覆盖写入 key所对应的值 INI文件的完整路径和文件名 写入结果 读取INI文件 要读取的段落名 要读取的键 INI文件的完整路径和文件名 读取结果 文件路径 构造 INI文件的完整路径和文件名 创建INI文件操作对象 INI文件的完整路径和文件名 写入INI文件 要写入的段落名 要写入的键,如果该key存在则覆盖写入 key所对应的值 写入结果 读取INI文件 要读取的段落名 要读取的键 读取结果