Entity Designer missing - entity-framework

As the title says, somehow the entity designer disappeared from my installation of Visual Studio 2010.
When trying to open an .edmx file, it only opens it in the XML editor. When i choose "Open With...", the Entity designer doesn't show up in the list.
It has worked before, and i don't know of anything i could have done to remove it from the list. Does anyone know how i can re-add it? Thanks!

First thing to check is, is this a problem with your project or with your VS installation.
Try creating a new project and see if the entity designer is in the list
If it is you have two options
Move your files to the new project
Try to repair your project file
The way it works is that there are a set og Guids in the project file that control what is available in that project. So you can open the project files in notepad, find out which is missing and then move them over.

Related

Need to set TextTemplatingFileGenerator as Custom Tool on *.tt files or Visual Studio 2019 won't build your Entity Framework models

I just discovered that Visual Studio 2019 wouldn't rebuild my Entity Framework models. Even if I right clicked the EDMX diagram file and selected, "Run Custom Tool" nothing would happen. Lot of posts here and elsewhere said to also Run Custom Tool on each *.tt file. But that wasn't possible since the "Custom Tool" property of all *.tt files was not set. At first I figured I'd use the same custom tool indicated on my .edmx file, which is EntityModelCodeGenerator.
Solution: The *.tt files need to have TextTemplatingFileGenerator set as their Custom Tool.
Set the Custom Tool property of each of your *.tt files to TextTemplatingFileGenerator.

Visual Studio 2015 EDMX model browser and diagram is missing

I have recently updated to Visual Studio 2015. Opened up my solution and works. Till I decided to add in an entity to my edmx. So I double-clicked on the edmx file to open the diagram like it should or maybe the model browser at least but it only opens an XML page. I checked any missed installation from the setup but didn't find anything about entity framework there. I tried to create a test solution and create another edmx but ADO.NET entity is missing as well. What is going on? Am I going to revert back to Visual studio 2013?
For me, the sequence was:
Double-click the .edmx file
Right click any white space in the opened diagram
Click Model Browser in the context menu that appears
If it opens as XML then it means that eventually XML Text Editor is set as default program to open edmx file. You can follow these steps to open in ADO.NET Entity Data Model Designer
right click on your edmx file
and select open with and select the option as show in below image.
http://i.stack.imgur.com/D49Ki.png
Alternate solution as the upvoted answer didn't work for me in VS2017:
Under the menu bar ribbon -
Select 'View'
Select 'Other Windows'
Select 'Entity Data Model Browser'

Entity Framework removes files from Source Control

we're using Visual Studio 2013 Update 4 with Entity Framework 6.0.2.
Our process for adding new tables, and new pocos is described in these steps:
Define new tables in the database project.
Publish the database to localdb server
Open EDMX-Designer and right click somewhere in the designer and select "Update Model from Database..."
Save the EDMX
The Code-Generator re-creates all pocos under the edmx-name.tt file inside of the edmx-name.edmx container.
In most of the cases everything works fine! In some cases the code-generator removes certain files from the source control. Most of the files existed already before the "Update from Database..." process, and were already under source control. I have to right-click the edmx-name.tt file and select "Add files to source control" to fix this.
This is a nightmare for the development process in the team! If it would happen always, I would always check the pocos by myself before checking in. But it is totally random, I can not see a reason why this is happening.
Is anyone experiencing problems like that? How can we fix that?
(I have had problems like that with other Versions of EF, too)
You should not have generated files under source control. If you remove them, but keep your entity model, them this will not be an issue.

How to copy a report in SQL Server Reporting Services 2008

I have a report that I created in SQL Server Reporting Services 2008.
I now want to create a new report, that is very similar that the one I already created.
How do I do that without writing the report from scratch? Can I just copy the .rdl to a new name? How will Visual Studio "pick that up"?
Thanks!
Just one last comment on Amarundo's callout:
"Diego, that's the thing. I can right click the report (under Solution Explorer) and select copy, but can't find where to past. Or if I copy the .rdl file, I don't know how to add that to my project."
If you right-click on a report item in the Solutions Explorer, the Copy option is available. However, the Paste option never becomes visible, even when you have a report item in your clipboard. However, the object is there, and you can paste it by pressing ctrl+v.
I think it was just a UI miss on Microsoft's part.
I confess that I did not know the answer to this question, so I tried. I copied and renamed one of my reports, added it to my project, uploaded to SSRS and ran it.
Seems to be working fine, so I guess the answer is yes
[In recent versions of Visual Studio, you can simply copy and paste in the solution explorer window and rename the file there. This answer will work with older versions of VS.]
The easiest way I've found to do this:
In BIDS, after creating the original report, right click on the project or reports folder in the Solution Explorer pane and select Add -> Existing Item...
In the resulting dialog, copy and paste your first report, which will give you something similar to "Report1 Copy.rdl"
Rename the copied file to your new report name.
Select the new file again, so that this name is selected in the File name text box.
Click the "Add" button.
Yes, there is no problem with adding multiple copies of identical .rdl's. There are no unique identifiers in the .rdl file.
Easiest way is copy the required .rdl file from Reports Folder (which is in the Solution Explorer Window -> Project Dropdown List) and then right click your project name (which is on the top of the same window). Select the paste option and your project will be duplicated with the name of Copy of (copied .rdl file name).
I had been copying reports for a while. One of the copies started to have a problem with a sub-report not being able to show when the report was run. The sub-report ran fine by it's self. After looking at the XML code in the RDL, I found that next to the last line was a ReportID GUID. Most of my reports shared the same GUID, including this report and it's sub-report. After getting a fresh GUID for the sub-report the problem was cleared up.
The only process that I could find to generate a new GUID was to delete all Data Sources in the report. Then delete the ReportID line in the XML. Then re-add a Data Source, which caused the VS2010 to crash. Once VS2010 recovered I was able to re-add the Data Source, which replaced the ReportID line in the XML with a new GUID.
I was able to create a new report in VS and instead of adding a new item (.rdl) in solution explorer I added an existing item, the .rdl from the report I wanted to copy. I changed the name of the .rdl and changed the SP in the dataset and it worked like a charm.
Yes. Right click your report ending with .rdl, select copy, and then select your folder and paste with ctrl-V. You can see as Copy of yourReport
Copy the RDL file from Prod source code to the Report server
Find the REPORTS URL by opening Reporting Service Config. Manager from Start btn
Open the Report Mgr URL option from left pane – goto to the URL listed in there
Find the folder the Rpt belongs in based on you organization method, and open that folder
Click Upload File at the top, browse to the copied file – Replace/Overwrite existing
Find Report in the report list, click its dropdown, choose Manage
Choose Datasources from the left pane
Choose a Datasource that the report will use from this list
Click Apply, and double click to run the report

How to change settings for a Visual Studio 2005 Deployment Project

I have a project containing at least one DLL along with the executable output. I have added a Deployment Project to this solution, which asked me for a name and working directory upon creation like all projects.
I named this "MyProduc_Installer" and have been able to modify all aspects of the installation process except for changing the name of the installer itself. Throughout the install process, the user sees messages like "Welcome to the MyProduct_Installer Installer." Even in the Add/Remove Programs list, this is the application's ill conceived title.
How do I change this setting? I have tried right click/properties, as well as all the View options. I couldn't find anything in the assembly information for the executable project, or solution properties.
I have tried right-clicking on the project in the Explorer to change the properties, but here is what I see:
There is no setting here to change the project title.
If you haven't found the answer to this yet, here is the answer.
Visual Studio has 2 sets of properties for Projects -
1 which you can accesss by selecting the Project in Solution Explorer and then right clicking and selecting 'Properties'.
2nd set of properties is in the 'Properies' window which shows up below the Solution explorer. This is the same property window which is displayed for any of the Form property settings or any other control settings.
The 'Product Name' and other project properties for 'Setup' project can be found in the second property window.
Hope this helps.
AC
The easy way to get to the properties you are interested in is to use the F4 shortcut when the project is highlighted. As stated in previous posts this is a very different list to the one you get by right click and selecting properties.
If you mean a Setup project like for winforms, it's the ProductName property. In Studio, I just click on the project name in the Explorer and I get the property window typical to other projects, and it's right there. Other properties include the AddRemoveProgramsIcon, InstallAllUsers, and RemovePreviousVersions.
I happened across this post, where I was having trouble renaming the Product as well.. In regards to using Click Once Publishing.
Since updating all the old names I couldn't get the Publishing to correct itself.
It was found notepading the project file xyz.vbproj in my case and updating the <ProductName>xyz wrong name</ProductName> element that was still wrong.
It was the only place I could find to update it, since the publishing or any property window didn't expose this.