コード例 #1
0
 /// <summary>
 /// Create a new Book object.
 /// </summary>
 /// <param name="bookID">Initial value of the BookID property.</param>
 /// <param name="categoryID">Initial value of the CategoryID property.</param>
 /// <param name="memberID">Initial value of the MemberID property.</param>
 /// <param name="aSIN">Initial value of the ASIN property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="author">Initial value of the Author property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="publishDate">Initial value of the PublishDate property.</param>
 /// <param name="addedDate">Initial value of the AddedDate property.</param>
 public static Book CreateBook(global::System.Int32 bookID, global::System.Int32 categoryID, global::System.Int32 memberID, global::System.String aSIN, global::System.String title, global::System.String author, global::System.String description, global::System.DateTime publishDate, global::System.DateTime addedDate)
 {
     Book book = new Book();
     book.BookID = bookID;
     book.CategoryID = categoryID;
     book.MemberID = memberID;
     book.ASIN = aSIN;
     book.Title = title;
     book.Author = author;
     book.Description = description;
     book.PublishDate = publishDate;
     book.AddedDate = addedDate;
     return book;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Books EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToBooks(Book book)
 {
     base.AddObject("Books", book);
 }