public static bool AddNew(HDS_ExamDetail Exd)
 {
     try
     {
         ExamSystemManagerDBEntities exMana = new ExamSystemManagerDBEntities();
         exMana.AddToHDS_ExamDetail(Exd);
         exMana.SaveChanges();
     }
     catch (Exception e)
     {
         errMsg = e.Message;
         return false;
     }
     errMsg = "";
     return true;
 }
 public static bool Update(HDS_ExamDetail Exd)
 {
     try
     {
         ExamSystemManagerDBEntities exMana = new ExamSystemManagerDBEntities();
         HDS_ExamDetail obj = exMana.HDS_ExamDetail.First(temp => temp.Exd_ID == Exd.Exd_ID);
         obj.Que_ID = Exd.Que_ID;
         obj.Exa_ID = Exd.Exa_ID;
         exMana.SaveChanges();
     }
     catch (Exception e)
     {
         errMsg = e.Message;
         return false;
     }
     errMsg = "";
     return true;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the HDS_ExamDetail EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToHDS_ExamDetail(HDS_ExamDetail hDS_ExamDetail)
 {
     base.AddObject("HDS_ExamDetail", hDS_ExamDetail);
 }
 /// <summary>
 /// Create a new HDS_ExamDetail object.
 /// </summary>
 /// <param name="exd_ID">Initial value of the Exd_ID property.</param>
 public static HDS_ExamDetail CreateHDS_ExamDetail(global::System.Int32 exd_ID)
 {
     HDS_ExamDetail hDS_ExamDetail = new HDS_ExamDetail();
     hDS_ExamDetail.Exd_ID = exd_ID;
     return hDS_ExamDetail;
 }