Hi

I would like to find a means of ORM that would allow me to declare a 
> single model that could handle the basic 5 pieces of common data, but 
> then also access the extra columns dynamically depending on what table 
> was specified.  I would really prefer NOT to have to write 50 or so 
> models (especially since this number is being added to and subtracted 
> from in an ongoing fashion).  I was wondering if perhaps Datamapper 
> might be able to solve this in a clean dynamic way.


You could look at using dm-reflection to get a list of models based on the 
current structure of your database. You could mix in a single module into 
each model if you wanted to share some common behaviour between them. It 
should be possible to handle this completely dynamically without hard 
coding any model names or table/column names into the system anywhere.

-- 

Dan

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/datamapper/-/xfDdrS-k9UEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to