Need help with Adapter.

Posts   
 
    
wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 16-Sep-2005 20:04:27   

Hi Frans.

I have used selfserv for some time now and i am very cumfortable with it. Today i thought that i will try LLBLGen from another angle, Adapter.

I generated the code and thought that i will start to look at "DatabaseSpecific".

The Help manual had the following example.

Dim adapter As New DataAccessAdapter()
Dim customer As New CustomerEntity("CHOPS")
adapter.FetchEntity(customer)

Now my problem. confused (Sure i am missing something...)

I don't understand where the entity comes from in the example as my project only generated a handfull of classes.

  • ActionProcedures
  • DataAccessAdapter
  • PersistenceInfoFactory
  • RetrievalProcedures
  • TypeDefaultValue

Thanks Wayne

Alvaro
User
Posts: 52
Joined: 01-Jun-2004
# Posted on: 16-Sep-2005 20:45:01   

Your Entities are in the DBGeneric assembly.

That is precisely the appeal of the Adapter model: you can now have one generic assembly and many db specific assemblies to target different databases, you can use your entities as data transfer objects between layers (as they don't have any data access code and are "just" information containers), etc.

cheers álvaro.-

wayne avatar
wayne
User
Posts: 611
Joined: 07-Apr-2004
# Posted on: 17-Sep-2005 00:58:44   

OK flushed Thanks - So i am suppose to use both projects.