Пример #1
0
 public static void DropContext()
 {
     if (ctx != null)
     {
         ctx = null;
         SessionInfo.UpdateToNewCtx();
     }
 }
Пример #2
0
        public static StatsTrackingDbCtx Get()
        {
            if (ctx == null)
            {
                if (sharedClient == null)
                    throw new Exception();

                ctx = new StatsTrackingDbCtx(Discussions.ConfigManager.ConnStr, sharedClient);
            }

            return ctx;
        }