Publish database function of visual studio in Rider - visual-studio

I recently moved from visual studio to Rider and I love it. However I've noticed that Rider does not have a function to publish your database project to a server. Does Rider have this option or anything like it? If not what would be the best alternative? I'd rather not have both IDEs open at the same time just for 1 function.

Rider has supported EF code-first since 2018, so that would be one way of managaing your database. Have you looked at that?
EF lets your code generate and update a database.

Related

Unable to open designer for DevExpress version 8.2 in Visual Studio

I've inherited an old project which uses Devexpress 8.2.4 - so i went and installed an appropriate DXperience Subscription v8.2.4. Now, when I try to open the designer through Visual Studio 2019, I get a:
"This method explicitly uses CM policy, which has been obsoleted by the .NET Framework. In order to enable CAS policy for compatibility reasons, please use the NetFx40/LegacySecurtyPolicy configuration switch. Please see http://go.microsoft.com/fwlink/?LinkID=155570 for more information."
Then I tried to open the project in VS 2010, and upon attempt at opening the designer, same CAS policy error happens.
After editing the VS2010 DevEnv configuration file (and respective config file for VS 2019), as Thomas suggested in his answer here, my Visual Studio 2019 just started crashing during start, and my Visual Studio 2010 successfully started but it then crashed upon trying to select the designer object.
Yes, I'm trying to get this designer for Devexpress 8.2 to run in either IDE - I just need to get it to work so I can hopefully add a QR Code(is this even possible in v8.2.4???).
I just don't know how to access designer to actually graphically update the report. I did some Devexpress projects myself but using v19 and newer, but I'm having trouble now, opening this designer for old Devexpress 8.21.
Any help would be appreciated as this HAS to be done by tomorrow.
Also, if v8.2.4 doesn't support QR Code (an XRBarCode object), what would be an alternative for adding that QR Code functionality? Would I have to upgrade to newer versions - would that break something?
Thanks!

Is there a model browser window for LINQ to SQL?

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.

Can i use VS2012 to open older VS Version projecs without changing anything?

Can i use VS2012 to open older VS Version projecs without changing anything?
I am just start with VS2012 and on college i always use VS2010, i have just start working with a new company and they use 2005 for most of the projects.
I want to know if there's a way that i can use VS2012 or VS2010 without changing anything so my (coworkers don't need to change anything)
NOTE: so far they dont use a TFS, but if they install one it must be 2010 cus is the one the other teams uses
Yes, of course: you just tell at the fist visual studio dialog box that you don't want to convert your VS 2010 project, and that's OK!

New visual Studio 2010 Database project and database diagrams

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.

Visual Studio 2010 Beta 2 & ADO.NET Entity Data Model

I just installed the beta for VS2010 Ultimate and I cannot locate the ADO.NET Entity Data Model template. I was under the impression that it as installed, can someone correct this or direct me where I can find it? Thanks.
I was running Visual Studio 2010 Ultimate and could not find the Entity Data Model wizard, so i installed Visual Studio 2010 Premium and voila, now I have Entity Data Model wizard.
For anyone viewing this question, I have figured out why. I have the VS2010 Ultimate Beta 2 and found that the ADO.NET Entity Data Model is not included, or never will be included.
I was told that VS2010 Premium, with less-capable features, has the ADO.NET Entity Data Model.
which sucks. >:|
EDIT:
I uninstalled Ultimate and halfway through the installation of the Premium edition, my colleague reassured me we wouldn't be using the EDM so I re-installed Ultimate (once again) and now it was there. To anyone else out there who has this problem, try what I did.
I think it might have something to do with the type of project you are adding the item to. I had some issues when I first installed so re-installed, without actually trying anything out.
When I wanted to add a model to a class library project at I first could not find it, however I then tried adding one to an existing WCF project, it suddenly appeared. I then went back to my library project and ta da! it was there also.
Not sure what caused this or if this is of any help to peeps reading this, but there it is, my experience with 2010 and EDM...

Resources