示例#1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
示例#2
0
        /*
         * public static UnityOfWork Instance
         * {
         *  get
         *  {
         *      lock (_Lock)
         *      {
         *          if (_Instance == null)
         *              _Instance = new UnityOfWork();
         *      }
         *
         *      return _Instance;
         *  }
         * }
         */

        public void Dispose()
        {
            _Context.Dispose();
        }