DbCommon/Access/AccessDataBase.cs

(完整代码) 925B

using System;
using System.Data;
using System.Data.OleDb;
using System.Data.Common;
using System.Data.SqlClient;

namespace NLKIRADBCommon
{
    public class AccessDataBase : DataBase
    {
        private OleDbConnection conn;
        private OleDbDataAdapter adapter;

        public override dbName DbName
        {
            get { return dbName.Access; }
        }
        public override IDbConnection Conn
        {
            get { return conn; }
        }
        public override IDbDataAdapter Adapter
        {
            get { return adapter; }
        }

        public AccessDataBase(string connectionString)
        {
            try
            {
                this.conn = new OleDbConnection(connectionString);
            }
            catch
            {
                throw;
            }
            this.adapter = new OleDbDataAdapter();
        }
    }
}

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

AI 解读 AI

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

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