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
|