Self-Tracking POCO problem

Posts   
 
    
Jeff M
User
Posts: 250
Joined: 04-Aug-2004
# Posted on: 02-Oct-2010 06:40:26   

Hello all.

I was unable to create a functional Service Reference to a reference to self-tracking POCO generated in LLBLGen. The WCF Server complained that CommonEntityBase was not decorated with the [Serializable] attribute. Once I corrected that, the server complained again. This time it's didn't like the fact that the [IsReference] attribute for MainEntity was set to TRUE when the base class "CommonEntityBase" was not.

Once I removed the [IsReference] attribute from the MainEntity, the service ran fine.

Am I doing something wrong?

Thanks.

Jeff

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 02-Oct-2010 10:45:56   

Could be a bug in our modifications of MS' code. MainEntity is a normal entity you have in your project? or an inheritance using entity?

Frans Bouma | Lead developer LLBLGen Pro
Jeff M
User
Posts: 250
Joined: 04-Aug-2004
# Posted on: 02-Oct-2010 15:01:17   

Hey Frans.

Otis wrote:

Could be a bug in our modifications of MS' code. MainEntity is a normal entity you have in your project? or an inheritance using entity?

I'm not quite sure what you mean. "MainEntity" is just a normal entity generated from the DB - inheriting CommonBaseEntity. Using v3.0 Final. Generating with EF4 and Self Tracking POCO.

Jeff

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 02-Oct-2010 16:08:15   

Jeff wrote:

Hey Frans.

Otis wrote:

Could be a bug in our modifications of MS' code. MainEntity is a normal entity you have in your project? or an inheritance using entity?

I'm not quite sure what you mean. "MainEntity" is just a normal entity generated from the DB - inheriting CommonBaseEntity. Using v3.0 Final. Generating with EF4 and Self Tracking POCO.

Jeff

Well, you understood what I meant and answered my question wink . We'll look into it, Jeff. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39612
Joined: 17-Aug-2003
# Posted on: 04-Oct-2010 14:31:32   

I can't reproduce it, as the CommonEntityBase class correctly has: [DataContract(IsReference = true)] [Serializable]

applied to it.

This was fixed on July 12th. Please update to the latest build simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Jeff M
User
Posts: 250
Joined: 04-Aug-2004
# Posted on: 04-Oct-2010 21:16:28   

Otis wrote:

I can't reproduce it, as the CommonEntityBase class correctly has: [DataContract(IsReference = true)] [Serializable]

applied to it.

This was fixed on July 12th. Please update to the latest build simple_smile

Aha! Thanks Frans.