Just search around on this. There are quiteca few resources talking
about this.
Sent from my iPhone
I've been working with win forms + wcf services + nhibernate for
implementing our repositories. We're not using lazy loading but we're using
a lot of dto, specially for showing lists of items. After running some
tests, it seemed like this is the best approach for just sending the
necessary info down the wire, without loading lots of unnecessary objects.
--
Regards,
Luis Abreu
email: labreu_at_gmail.com
PT Blog: http://weblogs.pontonetpt.com/luisabreu
EN Blog:http://msmvps.com/blogs/luisabreu/default.aspx
http://www.pontonetpt.com
MVP profile: http://mvp.support.microsoft.com/profile/luis.abreu
@Ben: I did do the search but couldn't really findout anything useful.
Could you direct me to a link and i'd be great if they have a code
example. What I read so far is that you'd need 2nd level cache which
means using Nchace (not a free framework). Also that i'd require
either using remoting or web service to make calls from front end to
interact with Business/DataLayer since they are not in the same App
Domain.
Btw, do notice that when I return a DTO I'm not loading the Order+LineItems.
I'm using NHibernate to make a projection over those elements (NH does this
really well since it will end up writing the SQL that returns only the
needed values). You can get more info on this by searching for Nhibernate
projections on the web.
Luis