Click here to Skip to main content
Licence CPOL
First Posted 12 Mar 2007
Views 34,679
Downloads 20,706
Bookmarked 56 times

Simple C# code generator for Oracle

By | 12 Mar 2007 | Article
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

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)

About the Author

rovshan_b

Web Developer

Azerbaijan Azerbaijan

Member



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
GeneralErrors Pinmembertroybooth4:39 17 Mar '11  
GeneralGot my 5! PinmemberJoe Sonderegger19:36 1 Apr '08  
GeneralMyGeneration - It's free too Pinmembermike.griffin@entityspaces.net8:34 19 Mar '07  
GeneralRe: MyGeneration - It's free too Pinmembertroybooth4:30 17 Mar '11  
QuestionNice. Does this have pre-coded CRUD procs? Pinmembersherifffruitfly7:58 14 Mar '07  
AnswerRe: Nice. Does this have pre-coded CRUD procs? Pinmemberrovshan_b19:55 14 Mar '07  

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 13 Mar 2007
Article Copyright 2007 by rovshan_b
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid