Vikas Vaidya
Vikas Vaidya

Reputation: 368

How to create ADO.Net Entity Data Model (.edmx) without opening diagram

I'm working on Database-first Entity data model. Due to nature of project there are lots of entities and I've a single .edmx file for that.

Every time I've to regenerate edmx file it takes a lot of time and some amount of time is consumed in loading the diagram in Visual Studio (2015). I don't want Visual Studio to open the diagram automatically as its not useful to me.

Is there any way to regenerate the edmx file without automatically loading diagram in Visual Studio?

I've checked on various sources but couldn't find any way to do it.

Upvotes: 0

Views: 479

Answers (1)

Stefan Zvonar
Stefan Zvonar

Reputation: 4319

To regenerate, right click on the edmx file and select "Run Custom Tool"

To stop loading the Diagram:

Right-click on the edmx file and click "Open With..."

Then select "Source Code (Text) Editor and then click "Set as Default".

You can change it back to the "ADO.NET Entity Data Model Designer" at a later date by performing the same process.

Upvotes: 0

Related Questions