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. |
Hello David,
Unfortunately, this is not implemented yet.
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
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).