public PageInfo(PageConfig config) { this._config = config; this._sourceName = config.SourceName; this.OutputName = FieldNameHelper.Parse(config.Name); this.SourceFields = config.SourceFields; }
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; } } }