コード例 #1
0
 public DepMst Details(int?id)
 {
     try
     {
         DepMst depMst = db.DepMsts.Find(id);
         return(depMst);
     }
     catch (Exception ex)
     {
         DepMst depMst = null;
         return(depMst);
     }
     finally
     {
         db.Dispose();
     }
 }
コード例 #2
0
ファイル: EmpsController.cs プロジェクト: sekhoniqbal/repos
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
コード例 #3
0
 public StateMst Details(int?id)
 {
     try
     {
         StateMst objMst = db.StateMsts.Find(id);
         return(objMst);
     }
     catch (Exception ex)
     {
         StateMst objMst = null;
         return(objMst);
     }
     finally
     {
         db.Dispose();
     }
 }
コード例 #4
0
 public TeacherCollegeMapp Details(int?id)
 {
     try
     {
         TeacherCollegeMapp objMst = db.TeacherCollegeMapps.Find(id);
         return(objMst);
     }
     catch (Exception ex)
     {
         TeacherCollegeMapp objMst = null;
         return(objMst);
     }
     finally
     {
         db.Dispose();
     }
 }
コード例 #5
0
 public Enrollment Details(int?id)
 {
     try
     {
         Enrollment objMst = db.Enrollments.Find(id);
         return(objMst);
     }
     catch (Exception ex)
     {
         Enrollment objMst = null;
         return(objMst);
     }
     finally
     {
         db.Dispose();
     }
 }
コード例 #6
0
 public TeacherMst Details(int?id)
 {
     try
     {
         TeacherMst TeacherMst = db.TeacherMsts.Find(id);
         return(TeacherMst);
     }
     catch (Exception ex)
     {
         TeacherMst TeacherMst = null;
         return(TeacherMst);
     }
     finally
     {
         db.Dispose();
     }
 }
コード例 #7
0
 public CollegeMst Details(int?id)
 {
     try
     {
         CollegeMst CollMst = db.CollegeMsts.Find(id);
         return(CollMst);
     }
     catch (Exception ex)
     {
         CollegeMst CollMst = null;
         return(CollMst);
     }
     finally
     {
         db.Dispose();
     }
 }