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