Beginner's questions
Posted: Thu 26 Feb 2015 15:28
Hello,
as I stated in my recent question, I'm a new user of EntityDAC (now the Pro version) and I'm a little bit confused about some things in documentation or samples provided:
Collection and references
http://www.devart.com/entitydac/docs/in ... tities.htm
The doc says I have to use Record<T> or Collection<T>. However I was not able to get this in order. I believe the doc is in contradiction with EntityDAC source - EntityDAC.MetaEntity lines 1824 and 1833. There is a record type expected but is restricted to TReferenceData or TCollectionData.
There are three required and two optional parameters defined for Collection attribute - and the example below has six parameters. What is right?
When using atribute mapped entities I have to override both constructors and (it may be optional) the Register method. In the Register method I have to register references and collections using RegisterReference or RegisterCollection. Where can I find documentation for this methods? When I'm using RegisterReference I have to get some metadata from the MetaReferences list. What do I need to get for the RegisterReference? For me is the reference field name without the leading character cut working. But I'm not sure why it is working. What is the pattern for get the RegisterReference working properly?
These are some of things that were some kind of obstacles of a newbie.
I'm sure answering it helps me and all other new users.
Best regards,
JD
as I stated in my recent question, I'm a new user of EntityDAC (now the Pro version) and I'm a little bit confused about some things in documentation or samples provided:
Collection and references
http://www.devart.com/entitydac/docs/in ... tities.htm
The doc says I have to use Record<T> or Collection<T>. However I was not able to get this in order. I believe the doc is in contradiction with EntityDAC source - EntityDAC.MetaEntity lines 1824 and 1833. There is a record type expected but is restricted to TReferenceData or TCollectionData.
There are three required and two optional parameters defined for Collection attribute - and the example below has six parameters. What is right?
When using atribute mapped entities I have to override both constructors and (it may be optional) the Register method. In the Register method I have to register references and collections using RegisterReference or RegisterCollection. Where can I find documentation for this methods? When I'm using RegisterReference I have to get some metadata from the MetaReferences list. What do I need to get for the RegisterReference? For me is the reference field name without the leading character cut working. But I'm not sure why it is working. What is the pattern for get the RegisterReference working properly?
These are some of things that were some kind of obstacles of a newbie.
I'm sure answering it helps me and all other new users.
Best regards,
JD