Esempio n. 1
0
        /// <inheritdoc/>
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            DynamicData = new DynamicDataHelper <TEntity>(ViewData);
            ViewData.SetDynamicData(DynamicData);

            base.OnActionExecuting(filterContext);
        }
        public override void Dispose() {
            if (_dynamicDataHelper != null) {
                _dynamicDataHelper.Dispose();
                _dynamicDataHelper = null;
            }

            base.Dispose();
        }
Esempio n. 3
0
        public override void Dispose()
        {
            if (_dynamicDataHelper != null)
            {
                _dynamicDataHelper.Dispose();
                _dynamicDataHelper = null;
            }

            base.Dispose();
        }
Esempio n. 4
0
 public static void SetDynamicData(this ViewDataDictionary viewData, DynamicDataHelper dynamicData)
 {
     viewData[VIEWDATA_DynamicData] = dynamicData;
 }