Fetch Entity with Dual Primary Key

Posts   
 
    
Posts: 54
Joined: 22-Jun-2010
# Posted on: 09-Aug-2010 15:17:32   

Version LLBLGEN 3.0 DB Oracle 9i/10g

Hi, I am trying fetch an entity which has dual primar key.

var affiliatemember = new AffiliatememberEntity((GlobalVariable.searchaffiliateclubid), GlobalVariable.searchaffiliatememberid); adapteraffiliatemember.FetchEntity(affiliatemember);

I get an error affiliatemember.Emailid1' threw an exception of type 'SD.LLBLGen.Pro.ORMSupportClasses.ORMEntityOutOfSyncException for every column in DB.

I have done lot of single key forms but I never had problem like this. Not sure what is going wrong here

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 09-Aug-2010 15:44:33   

It should not raise an excetpiton.

Would you please post the exact exception text and stack trace?

Could you please re-generate the code and make sure that you are using the latest build of the generated code projects. (I suspect that the DBSpecific Project is not in Sync with the DBGeneric Project).

Also why do you enclose the first CTor paramater in brakets?

Posts: 54
Joined: 22-Jun-2010
# Posted on: 09-Aug-2010 16:10:57   

Walaa wrote:

It should not raise an excetpiton.

Would you please post the exact exception text and stack trace?

Could you please re-generate the code and make sure that you are using the latest build of the generated code projects. (I suspect that the DBSpecific Project is not in Sync with the DBGeneric Project).

Also why do you enclose the first CTor paramater in brakets?

In process of testing, dropped all the tables. Will upload the strack track tomorrow evening. As far as latest version is concerned, yes I always use latest version the moment it is availablesimple_smile

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 09-Aug-2010 16:18:51   

I ment the latest version of the generated code. i.e. Make sure the application references the latest build of the generated code projects. (In case the projects are not already included in the same solution).

Posts: 54
Joined: 22-Jun-2010
# Posted on: 11-Aug-2010 12:49:24   

[quotenick="Walaa"]I ment the latest version of the generated code. i.e. Make sure the application references the latest build of the generated code projects.

(In case the projects are not already included in the same solution).

Thanks. resolved.