[DISCUSSION] Object Relational Mapping (ORM) for different
programming languages
Ruslan Zasukhin
sunshine at public.kherson.ua
Wed Oct 10 02:53:26 CDT 2007
Hi Beatrix, Thorsten, Phillip, Shawn
This is second page of article about ORM of Ruby.
http://www.developer.com/db/article.php/10920_3704126_2
Here interesting looks the work with LINKs.
It is so interesting and so sort syntax that looks like a dream.
----------------------------------------------------
DECLARATION:
class Contact < ActiveRecord::Base
belongs_to :state
end
USAGE:
Contact.find(1).state.abbreviation
----------------------------------------------------
And this raise question if possible get such or similar syntax for REALbasic
or C++ or other languages that Valentina supports.
And as far as I see answer is NO.
BECAUSE it seems to me Ruby allow return some kind of general parent Object
class and send him any messages, i.e. Calls of methods.
C++ and REALbasic are strict type languages. You cannot take REALobject and
calls method of its sub-class.
May be such style possible in Obj-C.
I doubt about C#, but also may be.
Comments?
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list