public void UpdateIssueDetails(int bookCopyId)
 {
     IssueDetail issueDetail = new IssueDetail();
     BookCopy bookCopy = context.BookCopies.First(x => x.BookCopyID.Equals(bookCopyId));
     issueDetail.BookCopy = bookCopy;
     issueDetail.Issue = issue;
     issue.IssueDetails.Add(issueDetail);
     context.SaveChanges();
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the IssueDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToIssueDetails(IssueDetail issueDetail)
 {
     base.AddObject("IssueDetails", issueDetail);
 }
 /// <summary>
 /// Create a new IssueDetail object.
 /// </summary>
 /// <param name="issueID">Initial value of the IssueID property.</param>
 /// <param name="bookCopyID">Initial value of the BookCopyID property.</param>
 public static IssueDetail CreateIssueDetail(global::System.Int32 issueID, global::System.Int32 bookCopyID)
 {
     IssueDetail issueDetail = new IssueDetail();
     issueDetail.IssueID = issueID;
     issueDetail.BookCopyID = bookCopyID;
     return issueDetail;
 }