Beispiel #1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     Current = null;
     Mutex.ReleaseMutex();
 }
Beispiel #2
0
        private static bool need_init = true; //one per app domain

        #endregion Fields

        #region Constructors

        private GameContext(string connString)
            : base(connString)
        {
            Database.SetInitializer(new DropCreateAndMigrateDatabaseInitializer<GameContext, GameContextConfiguration>());
            Current = this;
        }