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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With