コード例 #1
0
        private void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            DisposeBusinessObject(_userBusiness);
            DisposeBusinessObject(_attendancesBusiness);
            DisposeBusinessObject(_coursesBusiness);
            DisposeBusinessObject(_departmentBusiness);
            DisposeBusinessObject(_facultyBusiness);
            DisposeBusinessObject(_groupBusiness);
            DisposeBusinessObject(_studentCourseBusiness);
            DisposeBusinessObject(_studentsBusiness);
            DisposeBusinessObject(_teachersBusiness);
            DisposeBusinessObject(_typesBusiness);
            DisposeBusinessObject(_reportsBusiness);

            if (_dalContext != null)
            {
                _dalContext.Dispose();
                _dalContext = null;
            }
        }
コード例 #2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }