Reputation: 71
Can someone please suggest that how can I open edmx file in design view. This is evrytime opening in XML view?
Upvotes: 7
Views: 16069
Reputation: 20882
What is the source of your EDMX file?
If your file is from the $metadata endpoint of an OData service, then you can't open it in Visual Studio's EDM Designer. The OData metadata format is indeed EDMX but it is not compatible with Entity Framework's EDMX format.
Upvotes: 0
Reputation: 246
If it doesn't open it automatically, you probably don't have the SQL Server Data Tools installed.
You need to modify your Visual Studio 2012 install and select SQL Server Data Tools from the optional features list, which includes the EF Designer.
Or, here's a link to get it directly.
Upvotes: 2
Reputation: 1502216
Right-click on the item and select "Open With..." - that should offer you the designer. You can also set the default from that dialog too.
I assume you're using a version of Visual Studio which supports the EDMX designer...
Upvotes: 11