James
James

Reputation: 1188

Generating an EDM view from EF Code First

I've just made my database using Entity Framework Code First and everything is working great. However I want to see the schema of the entities; almost like generating an EDMX from the code first, but it doesn't have to do anything. How do I do this I hear there is a nuget package for it, but i'm not finding it. Thanks for the help!

Upvotes: 0

Views: 805

Answers (2)

Ladislav Mrnka
Ladislav Mrnka

Reputation: 364329

The tool is called Entity Framework PowerTools CTP 1 and it is not NuGet package. It is standalone installer available on VS Code Gallery.

Upvotes: 4

Marius Schulz
Marius Schulz

Reputation: 16440

If you're using the Code First approach, you don't have .edmx schema/mapping files. The relationships between entities can be found within the POCO models themselves.

If you definitely want to use .edmx files, however, you can use the Database First approach. In that case, you would create your database manually and let the entity data model be automatically generated for you.

Upvotes: 0

Related Questions