3

In WPF, how is binding to an Oracle database achieved?

Existing solutions

  1. Linq (all 3 required)
  2. ADO.net
  3. ODAC
    • not sure how

It'll also help if you have tried any of the above approaches and have links to them.

Community
  • 1
  • 1
mauryat
  • 1,610
  • 5
  • 29
  • 53

1 Answers1

1

I tried the 2nd solution (ADO.net) that I listed in the question and it worked!

Steps to follow

  1. Install an Oracle client (I used Oracle 11g). Apparently, an instant client can also be used.
  2. Follow the steps in this article.
  3. Small typo in the article: The name of the ListBox is incorrectly referred in code as listBox instead of listID.
  4. Connection String that worked for me (source):

SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort))(CONNECT_DATA=(SERVICE_NAME=MyOracleSID)));uid=myUsername;pwd=myPassword;

Community
  • 1
  • 1
mauryat
  • 1,610
  • 5
  • 29
  • 53