/// <summary> /// Deprecated Method for adding a new object to the EmpRequisitionDetails EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEmpRequisitionDetails(EmpRequisitionDetail empRequisitionDetail) { base.AddObject("EmpRequisitionDetails", empRequisitionDetail); }
public void insertDetailRecord(int emp_requid, string itemCode, int reqQty) { EmpRequisitionDetail detail = new EmpRequisitionDetail(); detail.Emp_ReqID = emp_requid; detail.Item_Code = itemCode; detail.Requested_Qty = reqQty; entity.EmpRequisitionDetails.AddObject(detail); entity.SaveChanges(); }
/// <summary> /// Create a new EmpRequisitionDetail object. /// </summary> /// <param name="emp_Req_DetailID">Initial value of the Emp_Req_DetailID property.</param> /// <param name="emp_ReqID">Initial value of the Emp_ReqID property.</param> /// <param name="item_Code">Initial value of the Item_Code property.</param> /// <param name="requested_Qty">Initial value of the Requested_Qty property.</param> public static EmpRequisitionDetail CreateEmpRequisitionDetail(global::System.Int32 emp_Req_DetailID, global::System.Int32 emp_ReqID, global::System.String item_Code, global::System.Int32 requested_Qty) { EmpRequisitionDetail empRequisitionDetail = new EmpRequisitionDetail(); empRequisitionDetail.Emp_Req_DetailID = emp_Req_DetailID; empRequisitionDetail.Emp_ReqID = emp_ReqID; empRequisitionDetail.Item_Code = item_Code; empRequisitionDetail.Requested_Qty = requested_Qty; return empRequisitionDetail; }