Is there a way to copy the class diagram generated by the LINQ To SQL ORM in VS2008 without using print screen (yes, I know it's pathetic)?
For example, when I create database projects in Visual Studio I can copy the database diagrams and save them later in Paint.NET in any image format. Any idea or suggestion will be greatly appreciated.
Print as PDF works for me using Acrobat.
I don't think it's possible.
Cropper is a great alternative for PrintScreen
I don't think you can do this through Visual Studio. However a quick web search revealed the existence of a produce called Entity Developer Express that appears to provide this facility. It's free too.
Related
I'm looking for a way to list the tables/objects in a LINQ to SQL model, and search them, similar to the Model Browser window for Entity Framework.
Are you using MS SQL Server? If so you should be able to use the Database Diagrams.
It turns out that in Visual Studio 2017 the model browser can be activated by pressing Ctrl+1 if the edmx diagram is displayed at the same time.
For a work-around, I'm editing the *.dbml file directly. However, this seems much more error prone (copy-paste errors, requires more knowledge of framework, etc.), for repetitive changes.
UPDATE (and actual fix):
I had to install SQL Server Data Tools (SSDT) for my specific version of Visual Studio. This doesn't have to match your target version of SQL Server.
See here for Visual Studio 2017:
https://learn.microsoft.com/en-us/sql/ssdt/download-sql-server-data-tools-ssdt?view=sql-server-2017
Note that using the standalone installer did NOT work for this purpose (LINQ to SQL model browser). Only using the Visual Studio installer, and after a restart did the browser load.
I didn't update this answer immediately, so there may be something I'm missing; please add more detail if you encounter this issue.
I'm using Visual Studio 2010 Ultimate to generate sequence diagrams for my application by right clicking on method names and selected "Generate sequence diagram...". Is there any way to generate multiple sequence diagrams at once? e.g. being able to generate all sequence diagrams for a class would be really useful. (I'm documenting a project for university and generating a sequence diagram for all my methods and copy pasting to MS Word is killing me).
Thanks
I don't think you can, but if you want to submit that as a feature suggestion, please do at Microsoft Connect.
I am experimenting with the database project in Visual Studio 2010. The schema diff and management of scripts looks great, but where are the database diagrams? I would like to design the tables visually, but still make use of the versioning/comparison/deployment tools in VS2010. I didn't see any option in the database project to create a diagram. Is that not supported?
You could create the diagrams in SSMS (or another diagramming/modelling tool) as you would do normally, and synchronize the structure back to your Visual Studio Database Project, although you'll need the Premium or Ultimate version of Visual Studio to use this feature.
I'm not sure if this is what you are looking for,
but I suggest you add an Entity Diagram (Entity Framework) to your
project / solution. This will allow you to design/describe your data model(s)
either by drawing them visually or by importing an existing database schema.
Entity Framework information:
http://msdn.microsoft.com/en-us/library/aa697427(VS.80).aspx
Tutorial (for EF 2.0 but still relevant)
http://blog.garypretty.co.uk/index.php/2009/05/20/tutorial-entity-framework-v20-model-first-using-visual-studio-2010-and-net-40/
I hope this helps you get started
There certainly is diagramming support.
Open the "Server Explorer"
Create/open a data connection.
You should see "Database Diagrams", which will function very similarly to the same function in SQL Server Management Studio.
Bam.
Note, I'm referring to V2010 Ultimate.
I found this but this is not working for me.I added a reference and also tried to also copy it to this directory -\Microsoft Visual Studio 9.0\Common7\Packages\Debugger\Visualizers
Has anyone tried using this or something similiar that helps me see the sql code generated by Linq query.I know I can use the profiler but I want something more easier and quick and this visualizer i thought would be the best... I am using vs2010 and .net 4.0 any ideas ?
Kindly visit the Q&A section in [http://visualstudiogallery.msdn.microsoft.com/en-us/99468ece-689b-481c-868c-19e00e0a4e69]. There are steps to get this visualizer working.
Today i've released the WPF version of the visualizer where you can add/edit linq query parameters and also export the query results to Excel.
To learn more on how to use the tool kindly visit my website. Further there are few blogs like http://www.thinqlinq.com/Post.aspx/Title/LINQ-to-Entity-Visualizer explaining how to get it working.
Two main items to get it working are
Download to correct folder and using the properties window in Windows Explorer unblock to use internet downloaded files.
Add in devenv.exe.config file.
For WPF version you'll have two dlls.
Hey guys, I have a dilemma that I am uncertain about, as I not sure if it's is exactly possible for a Visual Studio Add-in to run its code automatically.
I need an add-in that can run passively, like a logger for Visual Studios. However, the Exec method that I know so far can only execute commandbar functionality, but I need the code to execute when the user right-clicks, or select a line of text.
I was able to make an automatic logger if i put my code in the "querystatus", but that would be considered bad programming, and it does not log when I simply select a piece of text.
Does anyone know how to make a passive or automatic running code in Visual Studios?
Unfortunately I think you may need to implement this as a VS Package, which is a much more powerful way to extend Visual Studio. I'd highly recommend looking at the MSDN documentation regarding the "Integration Architecture", it will give you a good idea about the VS extensibility model works and some of the concepts that it uses.
More specifically to your problem, it sounds like you want to extend the Visual Studio editor. There's quite a bit of documentation about extending the editor on MSDN.
Hope this helps!