public GridConfig Finish() { var propertyMetaData = new PropertyMetaDataBuilder <TProp>(); var data = _propertyExpression.Compile()(_htmlHelper.ViewData.Model); _gridConfig.Properties = propertyMetaData.GetPropertyMetaData(); _gridConfig.Data = data.Select(prop => (object)prop).ToArray(); return(_gridConfig); }
public DetailConfig Finish() { var propertyMetaData = new PropertyMetaDataBuilder <TProp>(); var data = _propertyExpression.Compile()(_htmlHelper.ViewData.Model); _detailConfig.Properties = propertyMetaData.GetPropertyMetaData(); _detailConfig.Data = data; return(_detailConfig); }