Click here to Skip to main content
Licence 
First Posted 7 May 2006
Views 40,524
Bookmarked 29 times

Oracle Data Access Block for .NET

By | 7 May 2006 | Article
This is an Oracle Data Layer class for connecting to Oracle Database from a .net application based on Oracle Data Provider.NET

Introduction

This is an Oracle Data Layer class for connecting to Oracle Database from a .NET application

Oracle Data Provider for .NET (ODP.NET) is an implementation of a data providerfor the Oracle database.ODP.NET uses Oracle native APIs to offer fast and reliable access to Oracle data andfeatures from any .NET application. ODP.NET also uses and inherits classes andinterfaces available in the Microsoft .NET Framework Class Library.based on Oracle Data Provider.NET.

This C# class file contains two classes OracleDataAcess and OracleDataAccessParameterCache. We can easily manage the application Business layer by using this class. Here I give the sample code of the implementation of DataLayer in the Business Layer.

OracleParameter[] oraParam = new OracleParameter[2];


oraParam[0] = new OracleParameter("CustomerID", "100");
oraParam[1] = new OracleParameter("ResultCursor", OracleDbType.RefCursor);

oraParam[1].Direction = ParameterDirection.Output;

DataSet ObjDS =  OracleDataAccess.ExecuteDataset(connectionString, 
                 CommandType.StoredProcedure, 
                 "Pr_GetCustomerDetails",oraParam );

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

RB Changanacherry

Team Leader

India India

Member

I am Rajesh Babu, currently working for Nous Infosystems, Bangalore. I have 6 plus years experience in Microsoft Technologies.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMy vote of 4 Pinmemberrumicha10:37 26 Apr '11  
GeneralUse dispose method Pinmembergskalra4:38 21 Mar '11  
GeneralMuchas gracias por el aporte!!! PinmemberEdison Herrera Alvarez4:06 11 Sep '09  
GeneralExcellent, very good and very easy to use Pinmemberdanteprax7:49 3 Feb '09  
Questionhow connect database PinmemberArindamchatterjee0:08 5 Aug '08  
QuestionNile 3.0 Oracle Helper Vs your data access Pinmemberr_maiya7:26 4 Oct '07  
QuestionHow I can Use this Pinmemberprasadtalla3:16 25 May '07  
AnswerRe: How I can Use this PinmemberRajesh1580:50 10 Jul '07  
GeneralExcellent PinmemberMember #372533021:27 15 Jan '07  
QuestionODP Pinmemberhedidin4:50 15 Jul '06  
QuestionWhere's The Beef? PinmemberChris Meech2:23 8 May '06  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 8 May 2006
Article Copyright 2006 by RB Changanacherry
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid