public void insertDetailRecord(int dept_reqID, int Emp_reqid, DateTime processdate)
        {
            DeptRequisitionDetail detail = new DeptRequisitionDetail();
            detail.Dept_ReqID = dept_reqID;
            detail.Emp_ReqID = Emp_reqid;
            detail.Date = processdate;

            entity.DeptRequisitionDetails.AddObject(detail);

            entity.SaveChanges();

            //j = detail.Emp_ReqID;
            //return j;
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the DeptRequisitionDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDeptRequisitionDetails(DeptRequisitionDetail deptRequisitionDetail)
 {
     base.AddObject("DeptRequisitionDetails", deptRequisitionDetail);
 }
 /// <summary>
 /// Create a new DeptRequisitionDetail object.
 /// </summary>
 /// <param name="dept_Req_DetailID">Initial value of the Dept_Req_DetailID property.</param>
 /// <param name="dept_ReqID">Initial value of the Dept_ReqID property.</param>
 /// <param name="emp_ReqID">Initial value of the Emp_ReqID property.</param>
 public static DeptRequisitionDetail CreateDeptRequisitionDetail(global::System.Int32 dept_Req_DetailID, global::System.Int32 dept_ReqID, global::System.Int32 emp_ReqID)
 {
     DeptRequisitionDetail deptRequisitionDetail = new DeptRequisitionDetail();
     deptRequisitionDetail.Dept_Req_DetailID = dept_Req_DetailID;
     deptRequisitionDetail.Dept_ReqID = dept_ReqID;
     deptRequisitionDetail.Emp_ReqID = emp_ReqID;
     return deptRequisitionDetail;
 }