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);
        }
예제 #2
0
        public DetailConfig Finish()
        {
            var propertyMetaData = new PropertyMetaDataBuilder <TProp>();
            var data             = _propertyExpression.Compile()(_htmlHelper.ViewData.Model);

            _detailConfig.Properties = propertyMetaData.GetPropertyMetaData();
            _detailConfig.Data       = data;

            return(_detailConfig);
        }