DataProvider/SqlDBO.cs
(开头部分) 21KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Text;
using RM.DataProvider.ErrorReport;
namespace RM.DataProvider
{
public class SqlDBO
{
#region 私有变量.
private SqlConnection MyConn;
private SqlCommand MyComm;
private string _ConnStr = System.Configuration.ConfigurationManager.AppSettings["ConnStr"];
private bool _AutoClose = true;
#endregion
#region SqlDBO构造函数.
/// <summary>
/// SqlDBO构造函数.
/// </summary>
public SqlDBO() { }
/// <summary>
/// SqlDBO构造函数.
/// </summary>
/// <param name="ConnStr">Sql连接字符串.</param>
public SqlDBO(string ConnStr)
{
this._ConnStr = ConnStr;
}
/// <summary>
/// SqlDBO构造函数.
/// </summary>
/// <param name="ConnStr">Sql连接字符串.</param>
/// <param name="AutoClose">在执行完一次操作后是否自动关闭连接,默认为true,若改为false,则在操作完后须调用Close函数关闭连接.</param>
public SqlDBO(string ConnStr, bool AutoClose)
{
this._ConnStr = ConnStr;
this._AutoClose = AutoClose;
}
#endregion
#region AutoClose:是否自动关闭数据连接.
/// <summary>
/// 是否自动关闭数据连接.
/// </summary>
public bool AutoClose
{
get { return _AutoClose; }
set { _AutoClose = value; }
}
#endregion
#region SqlCmdParam:SqlCommand的参数
/// <summary>
/// SqlCommand的参数
/// </summary>
后面还有 658 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。