Can I use dotConnect4Oracle+WebMatrix to connect to Ora DB?

Can I use dotConnect4Oracle+WebMatrix to connect to Ora DB?

Postby r.m.saddler » Tue 26 Jul 2011 10:16

Hi,

I am looking into starting some of my junior developers on WebMatrix development. Can we still connect to our Oracle database using dotConnect for Oracle in this IDE?

Thanks,

Rob.
r.m.saddler
 
Posts: 33
Joined: Thu 20 May 2010 08:57
Location: Wales, UK.

Postby Shalex » Fri 29 Jul 2011 13:08

It is possible to use the runtime of our provider with this IDE. For example, if you want to open connection to the Oracle database, follow these steps:
1. Add references to the Devart assemblies into your web.config:
Code: Select all


 
   
     
       
       
     

   

 


2. Embed your code within <% %> of your *.aspx page:
Code: Select all
<%@ Page Language="C#" %>
<%
Devart.Data.Oracle.OracleConnection conn = new Devart.Data.Oracle.OracleConnection("server=orcl1120;uid=***;pwd=***;");
conn.Open();
Label1.Text = conn.State.ToString();%>


   
       
       
   
   
       

       

           
       

       

   

It seems like only Express Edition of dotConnect for Oracle can be used with WebMatrix because there is no way here to generate the App_Licenses.dll assembly with this IDE.
Shalex
Devart Team
 
Posts: 7654
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for Oracle