Beispiel #1
0
 public GenericManager <T> CreateDataManager()
 {
     if (_mgr == null)
     {
         if (!Isolated && Page != null && Page.Items["__LinqDS"] != null)
         {
             _mgr = new GenericManager <T>((GenericManager <T>)Page.Items["__LinqDS"]);
         }
         else
         {
             _mgr = new GenericManager <T>();
             if (!Isolated && Page != null)
             {
                 Page.Items["__LinqDS"] = _mgr;
             }
         }
     }
     return(_mgr);
 }
 public GenericManager <T, TEntity> CreateDataManager()
 {
     if (_mgr == null)
     {
         String keyName = "__LinqDS" + typeof(T).ToString();
         if (!Isolated && Page != null && Page.Items[keyName] != null)
         {
             _mgr = new GenericManager <T, TEntity>((GenericManager <T>)Page.Items[keyName]);
         }
         else
         {
             _mgr = new GenericManager <T, TEntity>();
             if (!Isolated && Page != null)
             {
                 Page.Items[keyName] = _mgr;
             }
         }
     }
     return(_mgr);
 }
 public GenericManager(GenericManager <T> mgr) : base(mgr)
 {
 }