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

📄 frameframe.cs

📁 结构很好的三层数据访问组件。开放源码。是微软企业库数据访问的替代产品之一。
💻 CS
字号:
namespace FrameCountry.FrameBuild
{
    using FrameCountry;
    using System;

    public class FrameFrame
    {
        private string ClassAlias = "FR";
        private FrameCity frameCity = new FrameCity();
        private string version = "1.0.0";

        public string ConnectDBString
        {
            get
            {
                string functionAlias = "00";
                string innerText = "";
                string errorInfo = "";
                FrameNode node = new FrameNode();
                if (!node.GetNodeInnerText("frameconnect", "./ConfigList/Datebase/DBString", ref innerText, ref errorInfo))
                {
                    throw new Exception(this.frameCity.DealErrorInfo(this.ClassAlias, functionAlias, errorInfo));
                }
                return innerText;
            }
            set
            {
                string functionAlias = "00";
                string errorInfo = "";
                FrameNode node = new FrameNode();
                if (!node.SetNodeInnerText("frameconnect", "./ConfigList/Datebase/DBString", value, ref errorInfo))
                {
                    throw new Exception(this.frameCity.DealErrorInfo(this.ClassAlias, functionAlias, errorInfo));
                }
            }
        }

        public string Version
        {
            get
            {
                return this.version;
            }
        }
    }
}

⌨️ 快捷键说明

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