Exemple #1
0
        public PageInfo(PageConfig config)
        {
            this._config     = config;
            this._sourceName = config.SourceName;
            this.OutputName  = FieldNameHelper.Parse(config.Name);

            this.SourceFields = config.SourceFields;
        }
Exemple #2
0
        public PageInfo(PageConfig config)
        {
            this._sourceName = config.Name;
            if (config.Name != null)
            {
                this.OutputName = FieldNameHelper.Parse(config.Name);
            }

            this.SourceFields = config.Fields.Select(x => x.Name);

            if (config.Fields != null)
            {
                foreach (var configField in config.Fields)
                {
                    this._configs[configField.Name] = configField;
                }
            }
        }