I'm a newbe using VS2005 (VB), SQL Server, the current LLBLGEN Pro and Adapter. I could do with some help for two problems.
I have the following projects in my Solution (where PMIS.WIN is a WinForm project intended to use manager classes in PMIS.BL).
PMIS.DB
PMIS.DALDBSpecific
PMIS.DAL
PMIS.BL (references PMIS.DAL, PMIS.DALDBSpecific, LLBLGen.Pro.ORMSupportClasses.NET20)
PMIS.WIN (references PMIS.BL, PMIS.DAL, LLBLGen.Pro.ORMSupportClasses.NET20)
First, some difficulties in doing design time binding. I've got a WinForm containing a DataGridView, a BindingSource and an EntityCollection. Datasource of the DataGridView is set to the BindingSource, and the BindingSource to the EntityCollection. I only seem to be able to add unbound columns to the grid and that doesn't seem right. Where have I gone wrong, what am I missing?
Second: In my DivisionManager (PMIS.BL) I'm trying to read all the entities for Division as follows:
Dim adapter As New DataAccessAdapter()
Try
Dim allDivisions As New EntityCollection(New DivisionEntityFactory())
adapter.FetchEntityCollection(allDivisions, Nothing)
Finally
adapter.Dispose()
End Try
When I access DivisionManager from frmDivision (PMIS.WIN), I get the following error:
Could not load file or assembly 'PMIS.DALDBSpecific, Version=1.0.2343.43076, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
I'm totally stuck, though I've noticed that within DivisionManager, I can only specify Imports for PMIS.DAL.DatabaseSpecific rather than PMIS.DALDBSpecific.
Any comments whatsoever would be welcomed.
Thanks