Developping persistence mapper
 
CapableObjects Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Developping persistence mapper Expand / Collapse
Author
Message
Posted 2010-03-10 01:24:25
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 2010-07-26 12:31:54
Posts: 56, Visits: 168
Hi,
Is there any documentation or samples on how to develop a custom persistence mapper?
Thankx
Post #4986
Posted 2010-03-10 08:07:12
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 2010-07-08 13:52:20
Posts: 74, Visits: 531
Hi,
see there Eco Folder, Source, Eco.Persistence.XXXX.


Alex
Post #4991
Posted 2010-03-11 00:25:56
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 2010-07-21 00:21:24
Posts: 1 228, Visits: 1 373
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]
Post #4994
Posted 2010-03-11 10:08:06
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Group: Forum Members
Last Login: 2010-07-26 12:31:54
Posts: 56, Visits: 168
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?
Post #4997
Posted 2010-03-11 12:22:04
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 2010-07-21 00:21:24
Posts: 1 228, Visits: 1 373
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]
Post #4999
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: HansKarlsen, Jonas Hogstrom

Permissions Expand / Collapse

All times are GMT +1:00, Time now is 4:09

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0,328. 9 queries. Compression Disabled.