Esempio n. 1
0
 public ICollection <DynamicPropertyMetadata> ScaffoldCreateProperties()
 {
     if (!string.IsNullOrWhiteSpace(CreateProperties()))
     {
         return(_propertyFilterManager.FilterAndOrderProperties(ScaffoldProperties(), CreateProperties()).ToList());
     }
     else
     {
         return(ScaffoldProperties());
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Get properties to be scaffolded for this view.  If view properties are passed in through the request, filter by them.
        /// </summary>
        /// <param name="dynamicEntityMetadata"></param>
        /// <returns></returns>
        public IEnumerable <DynamicPropertyMetadata> GetViewProperties(DynamicEntityMetadata dynamicEntityMetadata)
        {
            var dynamicPropertyMetadatas = dynamicEntityMetadata.ScaffoldEditProperties();
            var viewProperties           = _requestManager.ViewProperties();

            if (!string.IsNullOrWhiteSpace(viewProperties))
            {
                dynamicPropertyMetadatas = _propertyFilterManager.FilterAndOrderProperties(dynamicPropertyMetadatas, viewProperties).ToList();
            }

            return(dynamicPropertyMetadatas);
        }