First thing I want to say, after some time of evaluating DO4.2 I am quite impressed with our work!

The other thing, as title says, is there a way to explicitly specify (like in the FieldAttribute(FieldMapping=..)) the association table-name for many-to-many collections? It is meant for legacy DB where I have already association tables in place.. DO uses the table with the name <entitytype1name><collectionpropertyname><entitytype2name> which I want to 'override'.

Thanks, David

This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by david_csharp.

asked Apr 16 '10 at 08:16

Editor's gravatar image

Editor
46154156157

edited Sep 08 '10 at 05:52

Alex%20Yakunin's gravatar image

Alex Yakunin
29714412

Hello David,

Unfortunately, this is not implemented yet.

(Apr 16 '10 at 08:16) Dmitri Maximov Dmitri%20Maximov's gravatar image

DataObjects creates on a many-to-many assocation an "association table" with a composite name: <entitytype1name><collectionpropertyname><entitytype2name>

In my case the name of the table is: "dbo.ContactGroup-Z_ContactGroupContactList-Contact".

In our application we got database guidelines and we want to change the name of this table.

Is there already a possibility to define the name of the association table?

Regards Marco Leonardi

(Sep 07 '10 at 07:03) MarcoLeonardi MarcoLeonardi's gravatar image

Thanks, Marco, for your answer/comment update.

The issue is in our task list, although it is not included in the upcoming release (4.4).

(Sep 07 '10 at 07:13) Dmitri Maximov Dmitri%20Maximov's gravatar image
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA