예제 #1
0
 /// <summary>
 /// Create a new BorrowedItem object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="borrowerId">Initial value of the BorrowerId property.</param>
 /// <param name="movieDetailId">Initial value of the MovieDetailId property.</param>
 /// <param name="dateBorrowed">Initial value of the DateBorrowed property.</param>
 /// <param name="overdueDate">Initial value of the OverdueDate property.</param>
 /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 /// <param name="timeStamp">Initial value of the TimeStamp property.</param>
 public static BorrowedItem CreateBorrowedItem(global::System.Int32 id, global::System.Int32 borrowerId, global::System.Int32 movieDetailId, global::System.DateTime dateBorrowed, global::System.DateTime overdueDate, global::System.String modifiedBy, global::System.DateTime modifiedDate, global::System.Byte[] timeStamp)
 {
     BorrowedItem borrowedItem = new BorrowedItem();
     borrowedItem.Id = id;
     borrowedItem.BorrowerId = borrowerId;
     borrowedItem.MovieDetailId = movieDetailId;
     borrowedItem.DateBorrowed = dateBorrowed;
     borrowedItem.OverdueDate = overdueDate;
     borrowedItem.ModifiedBy = modifiedBy;
     borrowedItem.ModifiedDate = modifiedDate;
     borrowedItem.TimeStamp = timeStamp;
     return borrowedItem;
 }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the BorrowedItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBorrowedItems(BorrowedItem borrowedItem)
 {
     base.AddObject("BorrowedItems", borrowedItem);
 }