Issues with mapping in data project using Entity Framework 6 runtime- LLBLGen Pro 4.2

Posts   
 
    
amita
User
Posts: 5
Joined: 09-Mar-2015
# Posted on: 10-Mar-2015 17:29:25   

I added the dataproject generated by LLBL 4.2 using the Entity Framework runtime 6 and when i try to access one of the entities in the web application project it throws so many errors pertaining to mapping as listed below:

Dal.msl(3312,6) : error 3032: Problem in mapping fragments starting at lines 3312, 3321:Condition members 'profit_center.variable_expense_id' have duplicate condition values.

Walaa avatar
Walaa
Support Team
Posts: 14951
Joined: 21-Aug-2005
# Posted on: 10-Mar-2015 17:59:21   

My first guess is that this is an EF erro.

But anyway, does this error occur while accessing any of the entities, or just specific one? Could you provide a repro solution?

amita
User
Posts: 5
Joined: 09-Mar-2015
# Posted on: 10-Mar-2015 18:04:43   

These are the 2 mapping errors that I get

Dal.msl(2219,6) : error 3032: Problem in mapping fragments starting at lines 2219, 2228:Condition members 'profit_center.provision_and_write_off_id' have duplicate condition values.

Dal.msl(3312,6) : error 3032: Problem in mapping fragments starting at lines 3312, 3321:Condition members 'profit_center.variable_expense_id' have duplicate condition values.

And in my code I am accessing entity that is not having these mapping issues.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 11-Mar-2015 07:18:09   

Hi amita,

  • Please post the LLBLGen version and build nr ( http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7717 ).

  • If possible please attach your .lblgenproj. You can open a new HelpDesk thread (which is private) to do so.

  • Are you using inheritance in those entities? If so please describe the structure of your inheritance and try to reduce the reproducible case to the minimal so we can reproduce it over here.

I don't know about this error until today, and, as Walaa said, this seems like an EF error, but we have to see.

David Elizondo | LLBLGen Support Team