Was this feature ever added? I currently have exactly this problem multiplied by several tables and many fields... and I'm worried I will miss some if I try to rename them each individually... not to mention all the many relationship-based names that should also be renamed.
I tried setting ManuallySelectRenamedTargetsAfterRefresh to true, but, as its description explains, this setting is ignored if you use unattended refresh. This confuses me, because if I use regular refresh, don't I lose all my configuration work anyhow because it starts from scratch? Which would mean that the setting doesn't have any effect anyhow. So, perhaps I'm misunderstanding something fundamental.
I tried setting SyncMappedElementNamesAfterRefresh... which sounded like it might change the field names to match the DB, but I got an error:
(version: 2.0.0.0 Final released on December 6th, 2006 DB: Sql Server 2005)
I got:
A fatal exception occured during project refresh.
An error occured during the project refresh and the loaded project data is now unstable.
LLBLGen Pro has silently unloaded the project data. It has saved the project before the catalog refresh started so you didn't lose any work.
The project has been unloaded to prevent you from... etc etc etc.
When I ask to see the full exception information I get:
Message:
Index and length must refer to a location within the string.
Parameter name: length
Stack trace:
-----[Core exception]--------------------
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at SD.LLBLGen.Pro.ApplicationCore.GeneralUtils.MakeCLSCompliantName(String nameToConvert, Boolean capitalizeFirstCharacter, Boolean makeElementNamePascalCasing, Boolean removeUnderscoresFromElementName)
at SD.LLBLGen.Pro.ApplicationCore.CatalogRefresher.PostRefreshFixUpsEntities(ArrayList entitiesMigrated, LogNode entitiesRootNode)
at SD.LLBLGen.Pro.ApplicationCore.CatalogRefresher.MigrateEntities()
at SD.LLBLGen.Pro.ApplicationCore.CatalogRefresher.MigrateProjectToNewCatalog(Boolean isUnattended, SelectTargetsForOrphanedElementsCallBack targetSelectCallBack)
at SD.LLBLGen.Pro.Gui.Forms.MainWindow.RefreshCatalogs(Boolean unattended, Hashtable catalogsToRefresh)
at SD.LLBLGen.Pro.Gui.Forms.MainWindow.OnProjectExplorerCatalogRefreshClicked(Object sender, CatalogRefreshEventArgs e)
at SD.LLBLGen.Pro.Gui.Forms.ProjectExplorer._menuItemCatalogRefreshUnattended_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Source:
mscorlib