The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

masoud_sedighy@yahoo.com (11) [Avatar] Offline
#1
hello

i liked to add "Authororder" to GridViewAuthors (chapter 13) , so i add another user control like BookList , and add one line to the code like below , but loading data is slow around 45 seconds. before (original code in chapter13) loading was 4 seconds.

now i like to know this is problem of the code , i have added or this is normal?

is there a better way with more speed?

thanks a lot
----------------------------------------------------

public IEnumerable<BookAuthor> authororders { get; set; }

linq code:

select new AuthorPresentationModel
{
ID = author.ID,
FullName = author.LastName.ToUpper()+" "+author.FirstName,
Books = author.BookAuthors.Select(bookAuthors => bookAuthors.BookObject)
authororders=author.BookAuthors
};