Click here to Skip to main content
15,885,192 members
Articles / Programming Languages / C#
Article

Simple C# code generator for Oracle

Rate me:
Please Sign up or sign in to vote.
3.40/5 (15 votes)
12 Mar 2007CPOL1 min read 63.5K   23.1K   65   8
This is a simple C# code generator for stored procedures in an Oracle database. It also can create text for the new stored procedures.

Screenshot - ora_gen1.jpg Image 2 Image 3

Introduction

I recently started to implement a project with Oracle as a database backend and I needed some way to simplify database access to call stored procedures in my packages. After exploring several code generators I decided to write a simple code generator that I can always modify to suit my needs. Now it started to help me with my project and I decided to share it with you.

Using the application

After starting the application select the Connect menu item from the File menu and enter the connection string. The list of tables is displayed in the list box. Double click any of the tables. In the options dialog make the necessary selections and click OK button. First (New procedures) and second (Code) tabs will be filled with the generated code. Also you can switch to the third (Existing procedures) tab and click the refresh button. The combo box is populated with the list of existing database procedures. Now select the used table from the left and click the Show code button. DataTypes.xml file contains data type mappings between .NET and Oracle types. So, you can modify this file to suit your needs.

I will update this little app as I move with the project

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
Azerbaijan Azerbaijan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionSe puede modificar el codigo? Pin
Member 134892195-Jun-20 5:02
Member 134892195-Jun-20 5:02 
SuggestionPlease use English Pin
CHill605-Jun-20 5:05
mveCHill605-Jun-20 5:05 
GeneralErrors Pin
msdevtech17-Mar-11 4:39
msdevtech17-Mar-11 4:39 
GeneralGot my 5! Pin
Joe Sonderegger1-Apr-08 19:36
Joe Sonderegger1-Apr-08 19:36 
GeneralMyGeneration - It's free too Pin
mike.griffin@entityspaces.net19-Mar-07 8:34
mike.griffin@entityspaces.net19-Mar-07 8:34 
GeneralRe: MyGeneration - It's free too Pin
msdevtech17-Mar-11 4:30
msdevtech17-Mar-11 4:30 
QuestionNice. Does this have pre-coded CRUD procs? Pin
sherifffruitfly14-Mar-07 7:58
sherifffruitfly14-Mar-07 7:58 
AnswerRe: Nice. Does this have pre-coded CRUD procs? Pin
rovshan_b14-Mar-07 19:55
rovshan_b14-Mar-07 19:55 

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

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