Frustrating

Posts   
 
    
FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 28-Feb-2011 14:45:29   

Hi

I am a newbie to code gen tools....I downloaded the trial version(3.1) and I am experience lots of errors. I am obviously doing things wrong. I am following the tutorial and it mentions a template called self servicing or adapter and I JUST CANNOT FIND THAT ANYWHERE....I just carried on and used the general option. when I generate the code and import the generated code to VS2010 I keep getting missing assembly references i.e NHibernate(I fixed this by dowloading NHibernate and referencing it, but when I create a test console app it says it's missing even though I have imported it) etc?

I desperately need help!!

Regards F

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 28-Feb-2011 14:50:45   

Let's take it a step at a time. When you create a new project, the first of the wizard lets you choose from different target frameworks.

The Adapter and the SelfServicing template sets are in the LLBLGen Pro Framework. You can find a separate documentation file for each of these Frameworks.

Online Documentation Main Page: http://www.llblgen.com/documentation/ Please pay attention to different Frameworks.

Did this clear some of the confusion?

FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 28-Feb-2011 15:09:38   

Walaa wrote:

Let's take it a step at a time. When you create a new project, the first of the wizard lets you choose from different target frameworks.

The Adapter and the SelfServicing template sets are in the LLBLGen Pro Framework. You can find a separate documentation file for each of these Frameworks.

Online Documentation Main Page: http://www.llblgen.com/documentation/ Please pay attention to different Frameworks.

Did this clear some of the confusion?

Hi

Thanks a bunch..that cleared up a lot....

Next thing.....I am about to Gen, what exactly are the fundamental differences between self serving and adapter, considering I would like to use this code in service(WCF) environment?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 28-Feb-2011 15:18:52   

If you want to use the entity classes on the client as well, adapter is the way to go, as it's designed for distributed environments. Selfservicing has lazy loading which doesn't work on the client if the entity is fetched over a service. If you are planning to use dto's over the service, it doesn't matter much (as no entity will leave the server). See at the bottom

Frans Bouma | Lead developer LLBLGen Pro
Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 28-Feb-2011 15:19:21   

For WCF, Adapter is the one to use.

Please read this: Templates and Template groups

And this: XML Webservices / WCF support

FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 01-Mar-2011 12:57:00   

Hi

Thanx for the links..really helped..

I came across this resource.......

http://www.rohland.co.za/index.php/2010/01/23/implementing-the-repository-pattern-with-llblgen/

Is it credible?....if so...How do I implement it?....

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 01-Mar-2011 21:00:30   

It's certainly credible, and the link from that article to http://blogs.hibernatingrhinos.com/nhibernate/archive/2008/10/08/the-repository-pattern.aspx gives a lot more specific information about the repository pattern itself.

How to implement it - up to you really, it's not the sort of question we are setup to answer on here as it much too wide ranging. The best way is just to start building something, starting small and building up from there - let us know if you run into any specific issues that we can help with.

Matt

FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 02-Mar-2011 07:29:21   

MTrinder wrote:

It's certainly credible, and the link from that article to http://blogs.hibernatingrhinos.com/nhibernate/archive/2008/10/08/the-repository-pattern.aspx gives a lot more specific information about the repository pattern itself.

How to implement it - up to you really, it's not the sort of question we are setup to answer on here as it much too wide ranging. The best way is just to start building something, starting small and building up from there - let us know if you run into any specific issues that we can help with.

Matt

cool...thank you for the info......My last question might have been a bit vague. I mean, How do I install the template within LLBLGen?...The readme file suggests I copy it straight into the LLBLGen app folder, but it does not seem to come up in my template choices?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 02-Mar-2011 09:33:04   

FarhadB, did you try what's stated in the manual?

Frans Bouma | Lead developer LLBLGen Pro
FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 02-Mar-2011 09:54:32   

Otis wrote:

FarhadB, did you try what's stated in the manual?

I am going through it slowly......it's quite a bit to get through and still understand smile . What section should I be looking at?

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 02-Mar-2011 10:49:46   

In which folder exactly did you put the new template?

Have you read this: How to add a template

And this: Template Bindings Editor

FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 02-Mar-2011 10:51:09   

Hi

I have about 3 years solid experiance in .Net. My company (which have no architects) have chosen me to move them forward and redelop their ERP system. I am inexperienced when it comes to Acrhitecture(obviously).......So I am taking measures to make things easier like gen tools and so on. I also created a new thread indicatin a subset of our "would be" arhitecture(Business and DataLayer) if you would be so kind to look at...... http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=19494

I am strongly convincing my company that LLBLGEN is a tool to invest in so any extra motivation would be great simple_smile

FarhadB
User
Posts: 28
Joined: 28-Feb-2011
# Posted on: 04-Mar-2011 13:35:07   

thanks