Hi, I'm still learning here and having some difficulty creating the most efficient way of returning all needed data for my view.
I have a list of "DJ Mixes" that i want to return in pages of 20, but when displaying these "DJ Mixes" on my site each mix will also have some additional buttons displayed called "Add To Favourites", "Give Thumbs Up" and "Follow User" (or the remove from favs etc if already exists). I need to return all this information for each mix returned for the currently logged in user...how on earth would i go about doing this? Here is a simplified version of my classes: Accounts - AccountId Mixes - MixId - AccountId Account_Mix_Favourites - MixId (the mix added to accounts favs) - AccountId (the account who added the mix to favs) Account_Mix_Thumbs - MixId (the mix given thumbs up) - AccountId (the account who gave the thumbs up) Account_Followers - AccountId - FollowingAccountId (which account is this user following) I could just lazy load each additional bit of information with lazy- loading when displaying each mix but this doesn't seem very efficient! This is something i have been trying to work out for weeks with no luck, i have tried playing around with projections, linq to nhibernate etc but i just don't quite understand what i am doing! Thanks very much guys! Paul -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
