Пример #1
0
        public EntityHelper(int CacheMinutes, EntitySpecs eSpecs, bool PublishedOnly, int StoreID)
        {
            Url = DependencyResolver.Current.GetService <UrlHelper>();

            m_EntitySpecs  = eSpecs;
            m_IDColumnName = m_EntitySpecs.m_EntityName + "ID";
            m_StoreID      = StoreID;
            if (AppLogic.CachingOn)
            {
                m_CacheMinutes = CacheMinutes;
            }
            else
            {
                m_CacheMinutes = 0;
            }
            m_OnlyPublishedEntitiesAndObjects = PublishedOnly;

            m_TblMgr = new HierarchicalTableMgr(m_EntitySpecs.m_EntityName, "Entity", "EntityID", "EntityGUID", "Name", m_EntitySpecs.m_EntityXsl, m_CacheMinutes, 0, m_OnlyPublishedEntitiesAndObjects, m_StoreID);
        }
Пример #2
0
 public EntityHelper(int CacheMinutes, EntitySpecs eSpecs, int StoreID) : this(CacheMinutes, eSpecs, !AppLogic.IsAdminSite, StoreID)
 {
 }
Пример #3
0
 public EntityHelper(EntitySpecs eSpecs, int StoreID) : this(AppLogic.CacheDurationMinutes(), eSpecs, !AppLogic.IsAdminSite, StoreID)
 {
 }