/// <summary> /// Deprecated Method for adding a new object to the Book EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBook(Book book) { base.AddObject("Book", book); }
/// <summary> /// Create a new Book object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="name">Initial value of the name property.</param> /// <param name="book_type_id">Initial value of the book_type_id property.</param> public static Book CreateBook(global::System.Int32 id, global::System.String name, global::System.Int32 book_type_id) { Book book = new Book(); book.id = id; book.name = name; book.book_type_id = book_type_id; return book; }