Esempio n. 1
0
        /// <summary>
        /// 构造方法
        /// </summary>
        public DataParser()
        {
            var followXPaths = new HashSet <string>();

            foreach (var followSelector in Model.FollowSelectors)
            {
                foreach (var xPath in followSelector.XPaths)
                {
                    followXPaths.Add(xPath);
                }
            }

            var xPaths = followXPaths.ToArray();

            FollowRequestQuerier = BuildFollowRequestQuerier(DataParserHelper.QueryFollowRequestsByXPath(xPaths));
        }
Esempio n. 2
0
        /// <summary>
        /// 构造方法
        /// </summary>
        public DataParser()
        {
            _model         = new Model <T>();
            _tableMetadata = new T().GetTableMetadata();
            var followXPaths = new HashSet <string>();

            foreach (var followSelector in _model.FollowSelectors)
            {
                foreach (var xPath in followSelector.XPaths)
                {
                    followXPaths.Add(xPath);
                }
            }

            var xPaths = followXPaths.ToArray();

            GetFollowRequests = context => DataParserHelper.QueryFollowRequestsByXPath(xPaths).Invoke(context);
        }