示例#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;
        }