|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 2011-08-30 12:38:11
Posts: 61,
Visits: 183
|
|
Hi,
Is there any documentation or samples on how to develop a custom persistence mapper?
Thankx
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 2011-04-13 12:29:45
Posts: 75,
Visits: 544
|
|
Hi,
see there Eco Folder, Source, Eco.Persistence.XXXX.
Alex
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 2010-11-30 12:17:13
Posts: 1 230,
Visits: 1 382
|
|
The easiest way by far is to take (copy) an existing mapper and start by replacing the class for the connection component. You will need to create attribute mappers for all column types that are not standard, and you need to tweak the code used to load meta data (primarily table names and index names) needed for evolve. What database/connectioncomponent are you planning to add support for?
/Jonas Hogstrom [CapableObjects]
|
|
|
|
|
Forum Guru
      
Group: Forum Members
Last Login: 2011-08-30 12:38:11
Posts: 61,
Visits: 183
|
|
| My idea was dotConnect Universal from DevArt but it's an abstraction layer I am not sure that it will be enough precise for database fields for evolution?
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 2010-11-30 12:17:13
Posts: 1 230,
Visits: 1 382
|
|
As long as it abstracts correctly and implements the ADO 2.0 interfaces it should be possible, but my guess is that you probably have to handle the different supported databases separately anyway since they probably don't abstract the sql column types for example.
/Jonas Hogstrom [CapableObjects]
|
|
|
|