Hi,
Have returned to using LLBLGenPro V2, VB, Adapter, VS2005 SP1 and SQL Server to test some concepts. On my Form is an EntityCollection, BindingSource & DataGridView. Database is Northwind, Datasource is Orders on which is mapped a related field from the Customer table.
When I try to select the 'Entity factory to select' I get the following:
Error invoking 'Set EntityFactory to use'. Details:
Unable to cast object of type 'NW.Sales.DAL.HelperClasses.EntityCollection' to type
'SD.LLBLGen.Pro.ORMSupportClasses.IEntityCollection2'
However, if I Clean then Rebuild the project, I can set the factory. Now when I start Debugging the following error is generated:
Code generation for property 'Set EntityFactory to use' failed. Error was: "EntityFactory2Converter' is unable to convert 'NW.Sales.DAL.FactoryClasses.OrdersEntityFactory' to
'System.ComponentModel.Design.Serialization.InstanceDescriptor'.'
If I then Ok the error the project will run.
This problem only manifested itself after I mapped the related field and re-generated the project.
-
Could it be that I have some sort of a Referencing problem? What thoughts anyone?
-
I'm not able to edit data in the grid. Is this because Orders has a related field mapped to it?
I'd appreciate any feedback on this.
Thanks