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
};