ASP.NET Quick Start
[1] Reference the OracleHelper.dll to your .NET project.
[2] Add "ideaBubbling.DataAccess" namespace
[3] For executing simple query against Oracle database, we need the following statement
OracleHelper.ExecuteNonQuery(connectionString, CommandType.Text, "insert into employee(id,name) values (1001,'Charles')");
[4] For executing PL/SQL procedure, we need the following statement
DataSet ds = OracleHelper.ExecuteDataset(connectionString, CommandType.StoredProcedure, "USPGetEmployeeDetail",1001);
If you already had experience with SqlHelper class, you can easily use this OracleHelper because it is the simulation of SqlHelper class.
In
OracleHelper class has following methods
- 9 overloads for ExecuteNonQuery static methods for executing instant action queries like insert, update and delete as well as PL/SQL procedures
with/without maintaining transaction.
- 9 overloads for ExecuteDataset static method for executing resultant query like select and PL/SQL procedures with/without maintaining
transaction. The result will be getting as dataset object.
- 10 overloads for ExecuteReader static method for executing the resultant query like select and PL/SQL procedures with/without maintaing
transaction. The result will be getting as OracleDataReader object.
- 9 overloads for ExecuteScalar static method for executing the instant queries and PL/SQL procedures with/without maintaining transaction. If the
scalar value will be the output of PL/SQL or instant queries, this method is the choice.
- 6 overloads for ExecuteXmlReader static method for executing instant queries and PL/SQL procedures with/without maintaining transaction and
result will be the XmlReader object.