Hi,
I got a NullReferenceException while refreshing my FireBird database, after making changes to the update scripts (and applying them to the database):
-----[Core exception]--------------------
at SD.LLBLGen.Pro.ApplicationCore.MetaData.CatalogRefresher.FindRenamedTargets[TElement](HashSet`1 orphanedElements, LogNode parentLogNode, Dictionary`2 elementToNewTargetList, Dictionary`2 allElementsWithMappings, String elementTypeName)
at SD.LLBLGen.Pro.ApplicationCore.MetaData.CatalogRefresher.MigrateEntities()
at SD.LLBLGen.Pro.ApplicationCore.MetaData.CatalogRefresher.MigrateProjectToNewCatalog()
at SD.LLBLGen.Pro.ApplicationCore.MetaData.DatabaseMetaData.RefreshMetaData(IEnumerable`1 populatedCatalogs, LogNode refreshLogNode, Project containingProject, UserConfiguration preferences)
at SD.LLBLGen.Pro.ApplicationCore.MetaData.MetaDataStore.RefreshMetaData(String driverID, IEnumerable`1 populatedCatalogs, Project containingProject, UserConfiguration preferences)
at SD.LLBLGen.Pro.ApplicationCore.ProjectClasses.Project.RefreshMetaData(String driverID, List`1 populatedCatalogs, UserConfiguration preferences)
at SD.LLBLGen.Pro.Gui.Classes.GuiController.PerformRefreshMetaDataAction(String driverID)
at SD.LLBLGen.Pro.Gui.Controls.CatalogExplorer._commandManager_CommandClick(Object sender, CommandEventArgs e)
at Janus.Windows.UI.CommandBars.UICommandCollection.c(Object , CommandEventArgs )
at Janus.Windows.UI.CommandBars.UICommand.ar()
at Janus.Windows.UI.Internal.JNSCZ.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at Janus.Windows.UI.Internal.JNSCZ.WndProc(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)
Basically what I did was
- create a new entity and table named 'Invoice' in the LLBLGen designer,
- applied the generated SQL update script to the database (can I do this from the designer too?)
- refresh relational model data from database
LLBLGen version:
3.0 Final, June 8th, 2010
Firebird driver version: 2.5.2
Thanks,
Wiebe
EDIT: I keep getting the error consistently on trying to refresh the database.
It also automatically closes my project.