-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: n-tier wcf lazy loading
PostPosted: Tue Jun 08, 2010 10:41 am 
Beginner
Beginner

Joined: Wed Oct 18, 2006 4:41 am
Posts: 20
Location: West Yorkshire, UK
Hello,

I have trawled the web looking for an answer for this but cannot find any clear and concise answer:

I have a system with three main tiers: Data Layer, Business Layer, UI Layer (ASP.NET). The Data and Business layers are delivered via WCF. Currently the Business and UI layers have no dependency on NHibernate.

Is it possible to pass entities to the UI and still take advantage of lazy-loading across WCF? If so can anybody point me in the direction of a clear article/code example that demonstrates how this would be achieved? I'm aware that in order to achieve this I will break some SOA rules and that my client will require a dependency on NHibernate. I am not currently using any IoC mechanism within the project.

Thanks in advance, Carl


Top
 Profile  
 
 Post subject: Re: n-tier wcf lazy loading
PostPosted: Tue Jun 08, 2010 3:53 pm 
Newbie

Joined: Mon Jun 07, 2010 3:07 pm
Posts: 4
I haven't been able to figure out how to do it other than via data transfer objects. If there is an elegant solution, I'd like to know too.


Top
 Profile  
 
 Post subject: Re: n-tier wcf lazy loading
PostPosted: Wed Jun 09, 2010 4:38 am 
Beginner
Beginner

Joined: Wed Oct 18, 2006 4:41 am
Posts: 20
Location: West Yorkshire, UK
This post has helped clear things up... it seems that it's simply not a good idea to separate the tiers at this level:

http://ayende.com/Blog/archive/2009/07/ ... cture.aspx


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.