/// <summary>
        /// 序列化新设置到设置文件
        /// </summary>
        public void UpdateSetting(IUserTableInfo userTableInfo, JsonEntityDetial ex, JsonEntityDetial im, String dbCon)
        {
            exportEntities = ex;
            importEntities = im;
            userRoot       = userTableInfo;
            DBConnectArgs  = dbCon;

            Update();
        }
        public void UpdateSetting(String userCol, String passCol, String usrTbl, String usrCon, JsonEntityDetial ex, JsonEntityDetial im, String dbCon)
        {
            exportEntities = ex;
            importEntities = im;
            userRoot       = new UserInfo()
            {
                DbConnectStr = usrCon, UserName = userCol, Password = passCol, TableName = usrTbl
            };
            DBConnectArgs = dbCon;

            Update();
        }
        /// <summary>
        /// 初始化新的配置文件
        /// </summary>
        protected override void Init()
        {
            userRoot = new UserInfo()
            {
                DbConnectStr = "",
                UserName     = "******",
                Password     = "******",
                TableName    = ""
            };
            importEntities = new JsonEntityDetial();
            exportEntities = new JsonEntityDetial();

            Update();
        }
        protected override void Load()
        {
            //获取XML跟元素
            SettingNode root = LoadSettingXML(SettingFolder, SettingFile);

            //读数据库属性
            DBConnectArgs = root.Attributes[DbBaseTableConnectString];


            X readEntities = (out JsonEntityDetial entityDetial, ref SettingNode ro) =>
            {
                entityDetial = new JsonEntityDetial()
                {
                    roots = new List <IJsonTreeNode>()
                };
                //遍历每个Root实体
                foreach (SettingNode n in ro.ChildNodes)
                {
                    entityDetial.roots.Add(BuildTreeNode(n, null));
                }
                //读Root数据库信息
                entityDetial.DbConnectStr = ro.Attributes[DbBaseTableConnectString];
            };

            SettingNode node = root.SelectSingleNode(ExportRootNodeName);

            readEntities(out exportEntities, ref node);
            node = root.SelectSingleNode(ImportRootNodeName);
            readEntities(out importEntities, ref node);

            //读User节点
            node = root.SelectSingleNode(UserNodeName);
            //读User属性
            userRoot = new UserInfo()
            {
                DbConnectStr = node.Attributes[DbBaseTableConnectString],
                TableName    = node.Attributes[UserTableName],
                UserName     = node.Attributes[UserNameAttrition],
                Password     = node.Attributes[PasswordAttrition]
            };
        }