The previous article describes how to download MySQL for vs tools to do MySQL's ADO model data source selection, which will be tested by Oracle today. The steps are as follows:
1. NuGet installs the selected item in your project model layer
2, download Oracle, this is a bit troublesome ~ is not specifically said, here is the case that the Oracle has been good, but also the next Oracle for VS2015 Tools. is our drive.
To official website:
Once downloaded, install it directly (note that it is best to exit vs first before installing):
When you're done, you can--ado in our new project. NET entity model--See the driver for Oracle in the new link
In this way, the basic will be finished the son ~ ~ ~
One thing to note here is that the UI will have to be Oracle in addition to joining the connection string and provider in Webconfig. Manageddataaccess.entityframework NuGet comes in, it's possible that I've configured a little bit less, so simply directly under NuGet, add the configuration automatically.
<!--Oracle's database connection string - <Addname= "Oracleentities"connectionString= "metadata=res://*/oraclemodel.csdl|res://*/oraclemodel.ssdl|res://*/oraclemodel.msl;provider= Oracle.manageddataaccess.client;provider connection String="data SOURCE=127.0.0.1:1521/DJD; Password=lovemary; USER id=system" "ProviderName= "System.Data.EntityClient"/> <Addname= "Oracledbcontext"ProviderName= "Oracle.ManagedDataAccess.Client"connectionString= "User id=oracle_user; Password=oracle_user_password;data source=oracle "/>
<!-- the EF assembly of Oracle can be understood as a driver - < invariantname= "Oracle.ManagedDataAccess.Client" type= " Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, version=6.121.2.0, Culture=neutral, publickeytoken=89b483f429c47342 "/>
If you think this article is good or something, you can click on the bottom right corner of the
"Recommended" button, because your support is I continue to write, share the most power! Mary's Bamboo Source: http://www.cnblogs.com/joeymary/Statement: This blog original text only represents my work in a certain time in the summary of the views or conclusions. Non-commercial, unauthorized, post please keep the status quo, reprint must retain this paragraph statement, and in the article page obvious location to the original connection.
EF adds the ADO entity model directly to select an Oracle data source