Entity not picking up base class properties when referenced.

Posts   
 
    
JMitchell avatar
JMitchell
User
Posts: 128
Joined: 01-Sep-2006
# Posted on: 08-Jan-2007 17:04:25   

VB 2005, LLBLGen 2.0

I have two projects both using the same LLBLGen generated code. I have some custom code in some of the base classes and this is getting picked up fine in one of the projects which is in the same solution as the generated code.

The second project just references the dll and the SD.LLBLGen.Pro.... files but it doesn't seem to pick up the content of the entity base classes. (Maybe I'm not importing something, maybe I'm just not fully understanding how it's meant to work)

The specific error I'm seeing is: 'BrokenRules' is not a member of 'TravBase.EntityClasses.CustomerEntity'.

jbb avatar
jbb
User
Posts: 267
Joined: 29-Nov-2005
# Posted on: 08-Jan-2007 17:08:35   

Hello,

what dll did you add to your second project(the database generic or the databasespecific one)? It seems you only add reference to the database specific and not to the database generics. You can also use the project reference instead of dll reference if the project is already opened in your solution.

JMitchell avatar
JMitchell
User
Posts: 128
Joined: 01-Sep-2006
# Posted on: 08-Jan-2007 17:12:00   

Thanks for the quick reply. Sorry, I should have mentioned I'm using self servicing so there's only one dll

It's the solution that doesn't have the generated code in it that's having the problem and I don't really want to add the project in as it would add another copy of that to source control and I don't want that really.

JMitchell avatar
JMitchell
User
Posts: 128
Joined: 01-Sep-2006
# Posted on: 08-Jan-2007 17:41:38   

Sorry, I was including the wrong dll (Have a few projects using different versions of LLBLGen and VS)