none
EF 4.1 + MySQL + Associations RRS feed

  • Question

  • hallo,

    i am new to Entity Framework 4.1 with MySQL 5.5. For an example i am working with a wordpress database.

    The entities are generated as you can see on the picture: http://codex.wordpress.org/images/9/9e/WP3.0-ERD.png.

    But the associations aren't generated automatically, so that i added manually a one to many association from wp_posts to wp_postmeta.

    principal key is ID and dependent property is post_id.

    Till here everything should be right?

    I can't access wp_posts.wp_posts_meta. entitycommandexecutionexception is thrown when i try it. A second access

    from t in db.wp_postmeta where t.post_id == myID select t; doenst work either. Were is my fault?

    Friday, September 30, 2011 9:08 AM

All replies