Пример #1
0
 public void Dispose()
 {
     if (_db != null)
     {
         _db.Dispose();
         _db = null;
     }
 }
        protected override void Dispose(bool disposing)
        {
            if (_db != null)
            {
                _db.Dispose();
                _db = null;
            }

            base.Dispose(disposing);
        }
Пример #3
0
 public ToDoController()
 {
     _db = new anthRContext();
 }
Пример #4
0
 public MasterSiteController()
 {
     _db = new anthRContext();
 }
Пример #5
0
 public StaffService()
 {
     _db = new anthRContext();
 }
Пример #6
0
 public TimesheetController()
 {
     _db = new anthRContext();
 }