コード例 #1
0
        /// <summary>
        /// Sets the values on select.
        /// </summary>
        protected override void SetValuesOnSelect()
        {
            var dataViewIds = ItemIds.AsIntegerList().Where(a => a > 0).ToList();

            var dataViews = new DataViewService(new RockContext()).Queryable().Where(g => dataViewIds.Contains(g.Id));

            this.SetValues(dataViews);
        }
コード例 #2
0
 /// <summary>
 /// Sets the values on select.
 /// </summary>
 protected override void SetValuesOnSelect()
 {
     this.SetValuesFromCache(ItemIds.AsIntegerList().Select(a => NamedScheduleCache.Get(a)).ToList());
 }