DB ORM
zhang
bitworld at qq.com
Thu Aug 11 05:10:15 PDT 2011
> > I think D needs user defined attributes first.
About attribute, here is an example:
class ClassA
{
private int m_data;
@property int data() { return m_data; }
@property int data(int value) { return m_data = value; }
}
int main(string[] args)
{
ClassA aClass = new ClassA();
aClass.data = 22;
writefln("%d", aClass.data);
return 0;
}
========================
There is a problem that is D's basic type is not nullable. In C#, the nullable integer type can be defined as "Int?" or "Nullable<int>".
> I believe it is a lot of work for a single person to create something of
> the quality of Hibernate. An intermediate step may be appropriate, where
> all the automatic glue is still done by the programmer.
Have some guys started the first step works?
----------
Zhang <bitworld at qq.com>
More information about the Digitalmars-d
mailing list