Entity Framework 4 error 11009 Property is not mapped

tech1guy
tech1guy used Ask the Experts™
on
Hello there,

I am trying to learn Entity Framework 4 and therefore I am creating a small reference application. I am starting with Model first approch and right now I don't have any database.

After adding the Entities and their Associations, I am getting error: 11009: Property 'BookCategory' is not mapped.
 I understand that I need to add column mapping for BookCategoryId, but how could I do that?

Basically how to map: One-to-One, One-to-many (with foreign keys), Many-to-Many after association has been added.
ScreenShot.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2008

Commented:
I believe that means that you don't have anything mapped on the association.  Double-click on the association line, and make sure that you have a parent table, parent primary key column(s), child table, and child primary key column(s) defined for the association.

Author

Commented:
That's not the case...........association properties displays the association correctly.
Most Valuable Expert 2012
Top Expert 2008
Commented:
The image that you have shows that you have the Book entity selected, which is showing the mapping for Books.  Can you select the BookCategory entity, and show me that table mapping?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial