What you'll need first is the Oracle data provider either from Oracle or from Microsoft. All the C# code will look the same with the exception that the namespace is System.Data.OracleClient instead of System.Data.Sql. I believe there are code examples with both of these providers. But to get you started...
Instead of creating Sql* objects you create Oracle* objects.
If you plan to use Oracle stored procedures to return record sets you'll need to look up how to return "ref cursors" from Oracle.
It looks something like this, declare a type:
type myCursorType is ref cursor;
Your Oracle procedures will return this cursor type:
procedure MyProc(outData out myCursorType)
To return the recordset from within the Oracle stored procedure use:
open outData for "your select statement"
Now for C# code.
Unlike SqlServer stored procedures you have to setup an out parameter in your Command object's parameter collection to hold the recordset.
OracleParameter outData = new OracleParameter("outData", OracleType.Cursor);
outData.Direction = ParameterDirection.Output;
myCommand.Parameters.Add(outData);
Create your OracleDataAdapter and fill your dataset like you would if you were using SqlDataAdapters.
HTH
--
C Addison Ritchie, MCSD
Ritch Consulting, Inc.
"IGotYourDotNet" wrote:
Can anyone point me to some example ASP.NET apps that use Oracle has a backend and C# as the language?
I need to figure out how to populate a drop down, and then a datagrid depending on what the user selected in the drop down box.
thx