Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do I automatically generate associations in the EDMX using Entity Framework "database first"?

KrallusOct 9 2015 — edited Oct 20 2015

Hi.  I'm new to Entity Framework and the database I'm connecting to is Oracle 10g.  I'm developing using Visual Studio 2015, ODAC 12c Release 4 with the Visual Studio tools installed, and Entity Framework 6.1.3.  I am generating an EDMX model from an existing database.  In the Visual Studio wizard, I select existing tables that have foreign key relationships between them.  The resulting EDMX contains the tables and all of their columns, but no associations.  I tried doing this using the code first from an existing database wizard, and the results are similar: classes for tables and properties for columns, but again no associations or properties of one class that contain instances of another.  Should I not be expecting associations to be automatically created?  Is there something that I've missed?

This post has been answered by Krallus on Oct 20 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2015
Added on Oct 9 2015
1 comment
703 views