frameframe.cs

来自「结构很好的三层数据访问组件。开放源码。是微软企业库数据访问的替代产品之一。」· CS 代码 · 共 48 行

CS
48
字号
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 + =
减小字号Ctrl + -
显示快捷键?