Is there any way to add MongoDB as a custom data provider in Visual Studio 2013 Ultimate?
Server Explorer / Connect to Database
I have installed the latest MongoDB C# driver.
There are two APIs to be found on the network, both of them implements the ODBC standard:
One NYU Master's Degree (summer) project, which is compatible with the C++ driver;
Another, which is provided by Simba Technologies and available for a trial run.
After downloading and installing the connector, one must perform a setup with the provided administrator tool, as shown in the following picture.
After testing the connection in the ODBC Data Source Administrator, one should head over to the Visual Studio's interface, where the Database Connection setup is. One must choose the .NET Framework Data Provider for ODBC as a data provider, and the Simba connector will be available, as the following picture shows:
That's all!
Another ODBC driver was recently released that can be used here. It has a unique feature in that it exposes the nested MongoDB data model as a set of relational tables. As a result, the interaction with "relationally" minded apps like Visual Studio will be drastically improved:
http://www.progress.com/products/datadirect-connect/odbc-drivers/data-sources/mongodb
You should add the references to the MongoDB driver to your project.
You can do this by right clicking on your project in the solution explorer.
And then click Add Reference. Then you can locate the dlls from the MongoDB Driver.
After that you can use them in code.
Source:
http://msdn.microsoft.com/en-us/library/wkze6zky.aspx
http://www.drdobbs.com/database/mongodb-with-c/240151668?pgno=2
Related
Hi I am trying to use Entity-Framework in asp.net MVC , for that I have installed Oracle.Managed.DataAccess version 19.6.0 and Oracle.Managed.DataAccess.EntityFramework version 19.6.0
and oracle version 11.2.0 I am able to connect Oracle DB in server explorer but while adding new item in solution not getting any option to connect Oracle DB what is the issue I am not able to identify ,Any idea would be appreciated.
Image
Those are just the Nuget packages to allow your project to connect to Oracle.
I believe you need to add Oracle Developer Tools for Visual Studio to have the options available in the Visual Studio dialogs.
https://www.oracle.com/database/technologies/developer-tools/visual-studio/
You need to install a Oracle Client and TNSNAMES.ORA
The installation has a component list, if you insall that components (like Oracle developer Tools for visualStudio) it you can add your EF. and then when you finish you only need to add your TNSNAMES in order to create the Entities in VS.
When I try to publish my code first project into Azure, it shows me this warning:
Warning : A project which specifies SQL Server 2012 as the target platform may experience compatibility issues with Microsoft Azure SQL Database v12.
How can I change the target platform?
I've googled it, but what ever I've found was a sql project of data project, etc.
#David Browne's link leads to the answer, quoting directly from his link:
To change a project’s target platform
Right-click your project in Solution Explorer and select Properties. Click the Project Settings tab on the left to access the Project Settings property page.
The Target platform dropdown list in this page contains all the supported SQL Server platforms that a database project can be published to. For this procedure, select SQL Azure.
Of course for this specific warning, you'll want to select:
Microsoft Azure SQL Database V12
I was getting the same problem using SSMS 2012.
The solution was:
Download and install the latest version of SMSS (in my case, 2018).
Restar the pc.
Log in to my localhost server on SMSS.
Select my db and try again to "Deploy db to Ms Azure".
Good luck.
I want to connect to a database(Oracle 12c) for generating ADO.NET model, Code First From Database. I have installed ODAC for VS but there is still no option for connecting Oracle DB at the Entity Data Model Wizard:
At Server Explorer there is a Oracle provider but it is stated as deprecated:
I've also tried to install the following 4 Nuget packages but still no Oracle provider at Entity Data Model Wizard:
I'm suspecting VS2017(Community) is not looking at where I installed ODAC for the list of providers it use but I can't figure where it store this configuration.
Is there anything I'm missing? Or is there other ways to use EF for Oracle? E.g. Fallback to VS2015, create entity models manually (how do I do that?), etc.
Please help me I don't want to write plain SQL in code ever again! Thanks.
I have the same error. I solve this problem by add Oracle database from Visual 2015. And then Open project by Visual 2017. It done. I has been read a lot of topic about this. They say now, Oracle not yet Support for connecting Oracle DB at the Entity Data Model Wizard you can see at here:
https://community.oracle.com/thread/4024914
There is something extra:
Nuget package manager suggests Oracle.ManagedDataAccess.EntityFramework 18.3.0
This won't work with the latest ODP.
Nuget Package versions should match ODP versions:
ODP 12.2.0.1.1
Nuget Oracle.ManagedDataAccess.EntityFramework 12.2.1100
If not the Entity Data Model Wizard will crash without leaving any trace in the
C:\Users\YOURUSER\AppData\Roaming\Microsoft\VisualStudio
I solved this by installing Oracle Developer Tools for Visual Studio 2017
I hade the sam problem, but found the solution here:
Do not use the .NET driver. Use the ODP.NET driver (managed or unmanaged).
http://www.oracle.com/technetwork/topics/dotnet/whatsnew/vs2012welcome-1835382.html
Create a new connection from Server Explorer in Visual Studio and use these images as guides: change the datasource, making sure to choose the flavor of ODP.NET that your .NET application will use (Managed or Unmanaged) - and then connect to oracle. In the Oracle connection dialog, if you have a connection alias choose a "Connection Type" of "TNS" and then choose the alias from the "Data Source Name" drop down list. If you do not have a connection alias, you can choose a Connection Type of "EZ Connect" and then provide the host, port, and service name for the database you wish to connect to.
Best Regards, Par
I was facing same problem. first ensure that you installed odac for visual studio 2017
just go this link and follow:
https://www.oracle.com/technetwork/topics/dotnet/downloads/odacmsidownloadvs2017-3806459.html
uninstall previous odac version.
Hopefully, if you install from the link, you will get all things.
after reading this article missing SQLite data provider in VS 2013 , I've tried to register SQLITE provider for VS 2013 installing the specific provider with ddex included but with no result.
When I reboot VS 2013 I can't find it in the list of ADO.NET provider and I can't create the Model for my sqlite DB.
Managing app.config of my application I was able to load dinamically the provider but this is not a good choice for my developer's team.
I've also tried to install SQL Server Compact & SQLite Toolbox for VS but now I can see only SQLCE provider and not Sqlite.
Searching DATAPROVIDER in windows registry i've seen that the Sqlite provider and SQLCE provider were installed in two different ways, infact under supported object for SQLCE data provider I can find many reference to Visual Studio(ex: IVsDataAsyncCommand) , while under Supported object of SQLite provider I can see any reference to Visual studio.
In my opinion the problem is here.
Is there a simple way to register DDEX SQLite provider on VS 2013 in windows registry or any other type of operation to do to register this provider definitively?
Thanks in advance,
Fabio
you go to the page of System.Data.SQLite download page.
You have to download and install the correct BUNDLE package, depends on your framework and VS version.
Assuming framework 4.5.1 you have to download
sqlite-netFx451-setup-bundle-x86-2013-1.0.94.0.exe
This is the only setup package that is capable of installing the design-time components for Visual Studio 2013.
I had used Server Explorer and related tools for graphical database development with Microsoft SQL Server in some of my learning projects - and it was a great experience. However, in my work I deal with Oracle DB and SQLite and my hobby projects use MySQL (because they are hosted on Linux).
Is there a way to leverage the database-related tools in Visual Studio with other database providers?
Here is instructions on how to connect to your MySQL database from Visual Studio:
To make the connection in server
explorer you need to do the following:
first of all you need to install the MyODBC connector 3.51 (or latest) on
the development machine (NB. you can
find this at
http://www.mysql.com/products/connector/odbc/
)
Create a datasource in Control Panel/Administrative Tools with a
connection to your database. This data
source is going to be used purely for
Server Manager and you dont need to
worry about creating the same data
source on your clients PC when you
have made your VS.NET application
(Unless you want to) - I dont want to
cover this in this answer, too long.
For the purpose of this explanation I
will pretend that you created a MyODBC
data source called 'AADSN' to database
'noddy' on mysqlserver 'SERVER01' and
have a root password of 'fred'. The
server can be either the Computer Name
(found in Control
Panel/System/Computer Name), or
alternatively it can be the IP
Address. NB. Make sure that you test
this connection before continuing with
this explanation.
open your VS.NET project
go to server explorer
right-click on 'Data Connections'
select 'Add Connection'
In DataLink Properties, go to the provider tab and select "Microsoft OLE
DB Provider For ODBC drivers"
Click Next
If you previously created an ODBC data source then you could just select
that. The disadvantage of this is that
when you install your project
application on the client machine, the
same data source needs to be there. I
prefer to use a connection string.
This should look something like:
DSN=AADSN;DESC=MySQL ODBC 3.51 Driver
DSN;DATABASE=noddy;SERVER=SERVER01;UID=root;PASSWORD=fred;PORT=3306;SOCKET=;OPTION=11;STMT=;
If you omit the password from the
connection string then you must make
sure that the datasource you created
(AADSN) contains a password. I am not
going to describe what these mean, you
can look in the documentation for
myodbc for that, just ensure that you
get a "Connection Succeeded" message
when you test the datasource.
I found this during my research on Sqlite. I haven't had the chance to use it though. Let us know if this works for you.
http://sqlite.phxsoftware.com/
System.Data.SQLite System.Data.SQLite is the original
SQLite database engine and a complete
ADO.NET 2.0 provider all rolled into a
single mixed mode assembly.
...
Visual Studio 2005/2008 Design-Time
Support
You can add a SQLite connection to the
Server Explorer, create queries with
the query designer, drag-and-drop
tables onto a Typed DataSet and more!
SQLite's designer works on full
editions of Visual Studio 2005/2008,
including VS2005 Express Editions.
NEW You can create/edit views, tables, indexes, foreign keys,
constraints and triggers interactively
within the Visual Studio Server
Explorer!
The Server Explorer should support any database system that provides an ODBC driver. In the case of Oracle there is a built in driver with Visual Studio.
In the Add Connection Dialog click the change button on the data source you should then get a list of the providers you have drivers for.
Oracle has a set of tools that integrates with Visual Studio. It's packaged with their data access libraries.
http://www.oracle.com/technology/software/tech/windows/odpnet/index.html