Exemplo n.º 1
0
 /// <summary>
 /// Create a new Book object.
 /// </summary>
 /// <param name="bookID">Initial value of the BookID property.</param>
 /// <param name="iSBN">Initial value of the ISBN property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="seriesID">Initial value of the SeriesID property.</param>
 /// <param name="pages">Initial value of the Pages property.</param>
 /// <param name="publicationYear">Initial value of the PublicationYear property.</param>
 /// <param name="size">Initial value of the Size property.</param>
 /// <param name="coverID">Initial value of the CoverID property.</param>
 /// <param name="cover2">Initial value of the Cover2 property.</param>
 /// <param name="themeID">Initial value of the ThemeID property.</param>
 /// <param name="publisherID">Initial value of the PublisherID property.</param>
 /// <param name="tags">Initial value of the Tags property.</param>
 /// <param name="authorsList">Initial value of the AuthorsList property.</param>
 /// <param name="votes">Initial value of the Votes property.</param>
 /// <param name="totalRating">Initial value of the TotalRating property.</param>
 public static Book CreateBook(global::System.Int32 bookID, global::System.String iSBN, global::System.String title, global::System.String seriesID, global::System.Int16 pages, global::System.Int16 publicationYear, global::System.String size, global::System.String coverID, global::System.Int32 cover2, global::System.String themeID, global::System.Int32 publisherID, global::System.String tags, global::System.String authorsList, global::System.Int32 votes, global::System.Int32 totalRating)
 {
     Book book = new Book();
     book.BookID = bookID;
     book.ISBN = iSBN;
     book.Title = title;
     book.SeriesID = seriesID;
     book.Pages = pages;
     book.PublicationYear = publicationYear;
     book.Size = size;
     book.CoverID = coverID;
     book.Cover2 = cover2;
     book.ThemeID = themeID;
     book.PublisherID = publisherID;
     book.Tags = tags;
     book.AuthorsList = authorsList;
     book.Votes = votes;
     book.TotalRating = totalRating;
     return book;
 }
Exemplo n.º 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);
 }