F/ADO/DB/Sqlite.cs

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Text;
using System.Data.OleDb;
using System.Data;
using System.Configuration;
using System.Web;
using System.Data.SQLite;

namespace V.ADO
{
    /// <summary>
    /// ACCESS Help
    /// </summary>
    internal class Sqlite
    {
        /// <summary>
        /// 实例Access_DBHelp
        /// </summary>
        /// <param name="ConString">连接字符串</param>
        internal Sqlite(string ConString)
        {
            string text = ConString.FIntercep("\\|", "\\|", false)[0];
            if (text.FSubStrCount(":") == 0)
            {
                this.ConStr = ConString.Replace("|" + text + "|", F.IO.Paths.BinURL + text);
            }
            else
            {
                this.ConStr = ConString.Replace("|" + text + "|", text);
            }
        }

        #region 配置

        private string _ConStr;
        /// <summary>
        /// 数据库连接字符串;
        /// </summary>
        private string ConStr
        {
            get { return this._ConStr; }
            set { this._ConStr = value; }
        }

        private SQLiteConnection _Con;
        /// <summary>
        /// 数据库访问
        /// </summary>
        private SQLiteConnection Con
        {
            get
            {
                if (this._Con == null)
                {
                    this._Con = new SQLiteConnection(ConStr);
                }
                if (this._Con.State == ConnectionState.Closed)
                {
                    this._Con.Open();
后面还有 166 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。