⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataaccessorcreatorconfig.cs

📁 该文件是多层体系结构的数据访问层
💻 CS
字号:
#region Copyright & License
//
// $Copyright:$
//
#endregion
#region Document Information
// $Author: Bai.shijun $
// $Rev: 511 $ 
// $Date: 05-10-08 16:12 $
#endregion

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Diagnostics;

namespace Eai.Data
{
    public class DataAccessorCreatorConfig : IDataAccessorCreatorConfig
    {
        public DataAccessorCreatorConfig(string name, string type,
            IDictionary<string, string> properties,
            XmlNode configNode)
        {
            Debug.Assert(name != null);
            Debug.Assert(type != null);
            Debug.Assert(properties != null);

            this.name = name;
            this.type = type;
            this.properties = properties;
            this.configNode = configNode;
        }

        private string name;
        public string Name
        {
            get { return name; }
        }

        private string type;
        public string Type
        {
            get { return type; }
        }

        private IDictionary<string, string> properties;
        public IDictionary<string, string> Properties
        {
            get { return properties; }
        }

        private XmlNode configNode;
        /// <summary>
        /// 配置<see cref="IDataAccessorCreator"/>的元素节点,仅仅在使用XML应用配置是有效。如果未使用XML配置则值为null.
        /// </summary>
        public XmlNode ConfigNode
        {
            get { return configNode; }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -