Entity Factory is not defined.

Posts   
 
    
bigdave
User
Posts: 2
Joined: 14-Jan-2005
# Posted on: 14-Jan-2005 22:05:39   

New to llbgen pro.

Trying to create a collection of all MemberEntity using VB.Net

Using the following:

Dim adapter As New DataAccessAdapter() Dim allMembers As New EntityCollection(New MemberEntityFactory()) adapter.FetchEntityCollection(allMembers, Nothing)

i get error: Type 'MemberEntityFactory' is not defined.

What am I missing here?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 16-Jan-2005 12:02:11   

Did you add the <rootnamespace>.FactoryClasses namespace to your code file?

Frans Bouma | Lead developer LLBLGen Pro
bigdave
User
Posts: 2
Joined: 14-Jan-2005
# Posted on: 17-Jan-2005 19:28:42   

My apologies for not writing back when i found my mistake two days ago. I had two instances of visual studio open with similar test pages. One had Imports SD.LLBLGen.Pro.ORMSupportClasses.EntityCollectionBase2 and one didn't.

in going back and forth between help files and VS i looked at the imports statement in one instance of vs a coulple of times, but with all the windows open, i went to my code in the other instance and each time got the intelisense error.

Thanks for the response though, and I've got to tell you, LLBGen Pro has changed the way I code. I can now concentrate on logic and flow and not data retrieval. Also have no fear of enhancing or refining the underlying data structure once i've started coding since regeneration is a breeze.

Great job.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 18-Jan-2005 11:52:32   

Glad it's solved! smile

Frans Bouma | Lead developer LLBLGen Pro