MyBookShop/Core/SqlHelper/FluDataAdapter.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace Core.SqlHelper
{
    /// <summary>
    /// 封装所有ADO SQL对象
    /// </summary>
    public class FluDataAdapter:IDisposable
    {
        /// <summary>
        /// 字符串
        /// </summary>
        internal string ConnectionString { get; set; }
        public FluDataAdapter(string connString)
        {
            this.ConnectionString = connString;
            //创建连接对象
            this.Connection = this.CreateConnection();
            //创建当前连接对象的命令对象
            this.Command = this.CreateCommand();
            ////创建连接对象
            //this.Connection = new SqlConnection(connString);
            ////创建当前连接对象的命令对象
            //this.Command = this.Connection.CreateCommand();
            ////创建当前连接对象的SqlDataAdapter对象
            //this.Adapter = new SqlDataAdapter(this.Command);
        }
        /// <summary>
        /// 连接对象
        /// </summary>
        private SqlConnection _Connection;
        internal SqlConnection Connection
        {
            get
            {
                return _Connection;
            }
            set
            {
                _Connection = value;
            }
        }
        /// <summary>
        /// 命令对象
        /// </summary>
        internal SqlCommand Command { get; set; }
        /// <summary>
        ///SqlCommand 命令文本
        /// </summary>
        internal string CommandText
        {
            get
            {
                return this.Command.CommandText;
后面还有 129 行代码,购买后查看完整代码

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

AI 解读 AI

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

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