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