new entities / field references will not compile in code

Posts   
 
    
Posts: 26
Joined: 11-Apr-2012
# Posted on: 14-Mar-2013 16:04:32   

So all of the sudden I am unable to add new entities / fields to my project. The code generates and compiles OK, but in VS 2012 I am unable use my new entities. I have access to them, and intellisense works, but my code will not compile if I try to reference them.

I just downloaded the latest build for version 3.5, although I do'nt think that has anything to do with the problem.. it has always worked just fine before. Is there perhaps a setting in the designer that I messed up?

The error doesn't really make sense because all of my other entities work just fine. Just the new ones I add. And then I don't get compilation issues unless I try to use them.

Here is the compilation error :

Same thing if I try to use linq:

Any idea what might be going on here ? Here are the LLBLGEN DLL's I am referencing:

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 14-Mar-2013 17:26:30   

Please check the namespace of this entity class, and compare it to that of the working entities.

Posts: 26
Joined: 11-Apr-2012
# Posted on: 14-Mar-2013 17:30:05   

Hi, they all have matching namespaces, which is: KellyApps.EntityClasses

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 14-Mar-2013 17:31:38   

diamondracer wrote:

Hi, they all have matching namespaces, which is: KellyApps.EntityClasses

Did you select .NET 3.5 client profile perhaps?

Frans Bouma | Lead developer LLBLGen Pro
Posts: 26
Joined: 11-Apr-2012
# Posted on: 14-Mar-2013 17:37:27   

Just verified that the designer target framework is .net 4 and my projects are all .NET Framework 4.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 14-Mar-2013 19:48:56   

Including the application project, correct? It's not a client profile, is it?

Please try to clean the solution and rebuild.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39910
Joined: 17-Aug-2003
# Posted on: 15-Mar-2013 13:47:48   

Btw, the SD.Frameworks.Validation.LLBLGen.Pro assembly is for the designer, you should never reference that one in your code.

Please make sure in your code that you reference the right generated projects. Use F12 on the type in vs.net to check where an implementation is located.

Frans Bouma | Lead developer LLBLGen Pro
Posts: 26
Joined: 11-Apr-2012
# Posted on: 19-Mar-2013 14:08:28   

Thanks, it came down to cleaning and rebuilding each project in my solution separately.