/// <summary> /// Create a new Book object. /// </summary> /// <param name="bookID">Initial value of the BookID property.</param> /// <param name="invNum">Initial value of the InvNum property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="price">Initial value of the Price property.</param> /// <param name="languageID">Initial value of the LanguageID property.</param> public static Book CreateBook(global::System.Int32 bookID, global::System.String invNum, global::System.String title, global::System.Decimal price, global::System.Int32 languageID) { Book book = new Book(); book.BookID = bookID; book.InvNum = invNum; book.Title = title; book.Price = price; book.LanguageID = languageID; return book; }
/// <summary> /// Deprecated Method for adding a new object to the Books EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBooks(Book book) { base.AddObject("Books", book); }