Adapter and SelfServicing

Posts   
 
    
Wylie
User
Posts: 8
Joined: 17-Apr-2006
# Posted on: 18-Apr-2006 22:09:19   

Hi Again,

I've got a few more newbie questions.

1 - I've read how the two class SelfServicing option will put the generated code in the base class so that you can put custom code into the subclass without problems of it getting overwritten when you regen.

How is this addressed with the Adapter option. Where do I put custom code so that it is not regened?

2 - I've looked around for listing of how to do simple reads, saves, deletes, etc for both entities and TypedLists. Can't seem to find one. Could you give me a pointer.

3 - Also - is there anyway to get an email posted to me when comments are made on forum topics I'm tracking?

Thanks, Chris

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 19-Apr-2006 03:13:54   

1 - I've read how the two class SelfServicing option will put the generated code in the base class so that you can put custom code into the subclass without problems of it getting overwritten when you regen.

How is this addressed with the Adapter option. Where do I put custom code so that it is not regened?

There are USER_CODE_REGION areas that you are able to insert your own code into. These regions are not updated when your code is regenerated. There is also a section of the documentation which gives an example of Extending the framework through inheritance using Adapter.

2 - I've looked around for listing of how to do simple reads, saves, deletes, etc for both entities and TypedLists. Can't seem to find one. Could you give me a pointer.

It depends on if you are using self servicing or Adapter. Please look at the manual under using the generated code. This will give you detail on how LLBLGen is used to interact with the database.