Hello,
as mentioned in the first post, we are using model first scenario. Yes we generate create-DLL script and run on the database. We also have some changes in script generation template as LLBL does not allow us to specify DateTime precision for MySQL database.
In addition we need to have some quite complex views, which of course we can implement using LLBLGen features, but it is much more easier to do in SQL.
Here is exception message:
A fatal exception occured during project refresh.
An error has 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 accidentally saving the unstable project data.
Please re-try with the created backup or the project file on disk.
Do you wish to see the full exception information?
Yes No
When I click Yes, I get this:
Exception information.
LLBLGen Pro version: v4.2. Build: July 1st, 2014
Exception details:
Message: Collection was modified; enumeration operation may not execute.
Source: mscorlib
Stack trace:
at System.Collections.Generic.List1.Enumerator.MoveNextRare()
at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext()
at SD.LLBLGen.Pro.ApplicationCore.MetaData.CatalogRefresher.RepopulateIdentifyingFields(GroupableModelElementMapping mapping, LogNode parentLogNode)
at SD.LLBLGen.Pro.ApplicationCore.MetaData.CatalogRefresher.MigrateElementFields[TElement](TElement element, GroupableModelElementMapping mapping, LogNode parentLogNode, IEnumerable
1 unmappedTargetFieldsPreMigration)
at SD.LLBLGen.Pro.ApplicationCore.MetaData.CatalogRefresher.MigrateElementToNewTarget[TElement](LogNode logNodeToUse, TElement elementToMigrate, String elementTypeName, GroupableModelElementMapping mapping, IProjectElementMapTargetElement newTarget, IProjectElementMapTargetElement oldTarget)
at SD.LLBLGen.Pro.ApplicationCore.MetaData.CatalogRefresher.MigrateElementToNewTarget[TElement](Dictionary2 allElementsWithMappings, LogNode logNodeToUse, TElement elementToMigrate, Dictionary
2 elementToNewTarget, 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(IEnumerable1 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.Internal.JNSAU.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.JNSAU.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Inner exception: <null>