DataProvider/OleDBO.cs
(开头部分) 21KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Data.OleDb;
using System.Collections.Generic;
using System.Text;
using RM.DataProvider.ErrorReport;
namespace RM.DataProvider
{
public class OleDBO
{
#region 私有变量.
private OleDbConnection MyConn;
private OleDbCommand MyComm;
private string _ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.Web.HttpContext.Current.Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["ConnStr"]);
private bool _AutoClose = true;
#endregion
#region OleDBO构造函数.
/// <summary>
/// OleDBO构造函数.
/// </summary>
public OleDBO() { }
/// <summary>
/// OleDBO构造函数.
/// </summary>
/// <param name="ConnStr">mdb数据库位置.</param>
public OleDBO(string ConnStr)
{
this._ConnStr = ConnStr;
}
/// <summary>
/// OleDBO构造函数.
/// </summary>
/// <param name="ConnStr">mdb数据库位置.</param>
/// <param name="AutoClose">在执行完一次操作后是否自动关闭连接,默认为true,若改为false,则在操作完后须调用Close函数关闭连接.</param>
public OleDBO(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 OleDbCmdParam:OleDbCommand的参数
/// <summary>
/// OleDbCommand的参数
/// </summary>
后面还有 658 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。