EF adds the ADO entity model directly to select an Oracle data source

Source: Internet
Author: User

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=&quot;data SOURCE=127.0.0.1:1521/DJD; Password=lovemary; USER id=system&quot; "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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.