home recent topics recent posts search register faq   AspNetForum v.4.8.2.0

Huagati Systems Support Forum :: Forum

user:
psw:
| lost password
Home » Huagati DBML/EDMX Tools Support » Customizing naming with external name tools Messages in this topic - RSS
4/14/2010 1:20:47 PM
Kristofer
Posts 256
The add-in has had the capability to load external assemblies with custom naming rules (e.g. localized pluralization/singularization, or using other naming rules beyond the rules that can be defined in the add-in's own naming options) since version 1.75. There will be some minor changes to this as of version 1.87. The changes are as follows:

1) The extensibility interfaces are now defined in a separate DLL, HuagatiDBMLToolsExtensibility.dll. This is so custom name tool implementations don't have to be recompiled every time a new version of the add-in is released (except when there are breaking changes).
2) A couple of new methods have been added to the name extensibility interface: HasSettingsDialog and ShowSettingsDialog . This means custom naming DLLs can implement their own settings dialogs that will be accessible from the add-in's own settings dialog.
3) All naming methods BeforeRenaming , AfterRenaming , ToSingular , ToPlural has a new nameContext parameter passing in a value from the NameContextEnum that describe if the object being named is an entity set, entity type, scalar member, navigation member, method (stored proc/function) etc.

The online help for the extensibility interfaces has been updated with these changes: http://www.huagati.com/dbmltools/ExtensibilityHelp/

These changes break backwards compatibility for existing naming DLLs - sorry about that - but hopefully these new additions should give some additional flexibility to custom naming assemblies.

An updated code sample showing a custom naming class implementation will be uploaded here shortly.
edited by Kristofer on 4/14/2010
4/14/2010 1:34:20 PM
Kristofer
Posts 256
(related earlier thread for those interested in the origins of the extensibility interfaces: http://forum.huagati.com/topic74-customizing-table-names.aspx )
4/14/2010 1:35:47 PM
Kristofer
Posts 256
The name dialog is getting a couple of additions related to this: a checkbox to turn on/off custom naming (i.e. no longer need to hand-edit the .nameprefs file), a button to select which custom name tool to use, and a settings button to display the custom name tools' own settings dialog (if applicable).


edited by Kristofer on 4/14/2010

Attachments: customNameTool187.png
pages: 1
the topic is closed |

Home » Huagati DBML/EDMX Tools Support » Customizing naming with external name tools