6

I am doing this to connect database using sql.

    OracleConnection conn = new OracleConnection();
    conn.ConnectionString = "Data Source=XE;uid=HR;pwd=fusion;";
    conn.Open();
    OracleCommand command = new OracleCommand("Select * from Students", conn);
    DataSet ds = new DataSet();
    OracleDataAdapter oraDa = new OracleDataAdapter(command);
    oraDa.Fill(ds, "Students");
    return ds.Tables["Students"];

But I want to use Linq instead of SQL. I heard it is possible using Entities.

1 Answer 1

4

There are some third party providers that support EF today. Personally I have been using Devart dotConnect for Oracle for some time. Datadirect is another such option.

Oracle has a beta version of it's ODP.Net provider supporting EF, I haven't tried to use it yet.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.