EF Designer in VS2019 Does not come up - entity-framework

Visual Studio 2019 "EF Designer from database" does not come up.
I have VS2019 with ODT.Net 19.3.2 and Oracle Client 32-bit 11.2g
There is an existing Oracle 11g database on the server for which I have successfully created and tested a connection in Server Explorer.
Now when I try to bring up the "EF Designer from the database", I get this strange behavior where it returns to the first screen in the wizard, like so:
In Solution Explorer, right clicked project -> Add -> New Item.
Select "Data" on the left then "ADO.Net Entity Data Model" on the right. Click "Add" button.
Select "EF Designer from database". Click Next.
Click Next
Returns to 1st screen!!!! EF Designer does not come up!!
I'm suspecting that maybe ODT.Net 19.3 is not compatible with Oracle Client 11.2g?

Related

How to observe database when using Entity Framework 6 with WebAPI 2?

I wanted to know how to view the database when using Entity Framework 6 with Web API 2.
Most tutorials I see show the ability to open the "Server Explorer" or "SQL Object Explorer" window to view "Data Connections", which will show a connection to the database created when deploying the current project that is using Entity Framework. However, when I view these windows and refresh, there is nothing showing under "Data Connections"
I have hit a problem on a current project when trying to use EF6 with relationships in the models and It would help me to debug if I could see what EF has created. Perhaps the tables, sql, or visual class diagrams would be great, but I can't find any of those in the solution.
I can recreate the issue using Visual Studio 2013 with the following steps:
File > New > Project > Visual C# > Web > ASP.NET Web Application
Select WebAPI project template > Click OK
Right click Model folder in solution > Add > Class > Create "Question.cs"
Add add few properties to the model.
Right click Controllers folder in solution > Add > Controller > Web API 2 Controller with Entity Framework
Select Model we created in step 4-5, Create new context "TestContext"
Build project
Now, i'm expecting that the scaffolding done by the steps above creates the TestContext which extends DbContext which defaults to creating a LocalDb instance on my machine. It's my understanding that LocalDb is included with VS 2013 and I have Window 8.1 which should have IIS on it. I'm expecting to be able to see the database created when I build the project.
Is there some settings I need to change to view the database in VS2013 or does the Data Connection only show up if I have SQL server installed?
The only other difference I can see, is that most of the tutorials I reference are using MVC projects and since mine is WebAPI with EF added, perhaps there are some default settings / web.config settings that need to be enabled for me to see the database.
Speaking of web.config I do not see an explicit connection string in the web.config from the TestContext, which I was expecting.
Help is much appreciated.
By default, Entity Framework will use a localdb database.
The actual database file will be created under the AppData folder of the solution.
Initially, the file won't be visible in the Visual Studio solution explorer, as the file is not included in the project.
Clicking the Show All Files button of the Solution Explorer toolbar to view the file.

Tfs connect project and map it

I'am having problem with team foundation server.(http://tfs.visualstudio.com/). I created project from there(http://tfs.visualstudio.com/). And I click Open New Instance of Visual Studio.
And Team Explorer is look like:
Then i click File>New Project and clicked Add to Source Control and selected My project name in TFS. So i uploaded my project and it added to my tfs project. But i dont know how can i share my project in tfs. I tried this:
Entered my friend live id(hotmail). Then he signed up and he did same steps like me. But how can he download project that already exist? I did not see specific setting for that.
What i must supposed to do?
He must use the menu File > Open > Team Project. Visual Studio will probably ask for a TFS server, when you set the server URL, he will be able to see the collections and projects, then, he can open the project.
Or, on the window you showed (Team Explorer), he can click on Source Control Explorer and open the solution from there.
Visual Studio will ask for a mapping directory.
If you are trying to connect to Team Foundation Service via VS 2008 following steps have to be done,
Install VS 2008 SP1, Team Explorer 2008 and GDR update (VS90SP1-KB2673642-x86)
Connect manually to Team Foundation Service
Team Explorer -> Servers -> Add -> type
https://[YourAccount].visualstudio.com/DefaultCollection
Make sure to add /DefaultCollection.

entity-framework no context menu in VS2012

I've installed EntityFramework from VisualStudioGallery to VS2012 but when I mouse over the project, there is NO "Entity Framework" context menu available.
The menu "Manage NuGet Packages" is available over "Resources" and EF Package is installed.
Any ideas?
Maybe you are confused. For add a Entity Model Desing file you need RMouse in the project, select add new and select the option "data" and after select "Ado.Net Entity Data Model".
If you want the option "Entity Framework" in the menu of RMouse you maybe are talking about Entity Power Tools, and for that you need to get that plugin Entity Framework Power Tools
The Entity Power Tools will to enable the option "Entity Framework" in the main menu of the RMouse and is for generate POCO class based in your database.
Try to intall the 2012.2 update http://www.asp.net/vnext.

Cannot Update EF Model From Database with TFS

I've recently moved to using TFS 2012 and have edited a couple of files and checked in without any problems. However, I've just started work on the EF data model and despite being able to open the file the "Update Model From Database" option on the Entity designer right-click menu is greyed out / disabled.
I'm a bit baffled by this. I've tried checking out the file with the "Allow other users to check out but prevent them from checking in" but that doesn't make any difference. Nor does checking out the whole folder the project is in.
Does anyone know what I'm doing wrong?
EDIT:
I've discovered that if I create a project in TFS and add an entity model to it then I can update it. However, if I import an existing project into TFS and then try to edit the .edmx file then that's when the problem happens.
I managed to work out the problem, I'll post it here just in case anyone else suffers with this:
The project wasn't set up properly. I was editing the files in the "local path" having not opened the project first (seems kind of stupid now, but this is my first time with TFS and I'd assumed opening the project in TFS opened it as a project in VS).
When I double-clicked on the .csproj file within the Source Control Explorer I was prompted with: "The solution you have opened is under source control but not currently configured for integrated source control in Visual Studio. Would you like to bind this solution to source control now?"
Clicking "Yes" opened the project correctly and I could run the update the model from the database.

Missing Ado.Net Entity Data Model on Visual Studio 11

Missing "Ado.Net Entity Data Model" on Visual Studio 11, how can i install it?
It's right here - click Add New Item in Solution Explorer, in a suitable project:
What type of project did you want to add it to??