locked
error code 3004 RRS feed

  • Question

  • Hi,

    I am using visual studio 2010 and entity framework 4 to implement a C# windows program.  When I rebuild the solution, I got the following error:

    Error 1 Error 3004: Problem in mapping fragments starting at line 1388:No mapping specified for properties Appt.AccBase_acbAccID in Set Appts.
    An Entity with Key (PK) will not round-trip when:
      Entity is type [PatientModel.Appt]

    I have appt table and accbase table. in the conceptual entity  model,  there is no association between the two tables although they can be linked by acbAccid and appAccid.

    How to fix it? 

    Friday, July 1, 2011 4:44 AM

Answers

  • Hi,

    This mapping error is not a result for mapping to foreign tables, but mapping the property Appt.AccBase_acbAccID against a database column. If you right click you model, you'll find a choice called Mapping Details. Click on this and select your entity and review the column mapping.

     


    --Rune
    • Marked as answer by peter 9 Monday, July 4, 2011 12:04 AM
    Friday, July 1, 2011 5:26 AM