views:

303

answers:

5

Hi,

I'm new to c# and .net development. I'm looking for a C# code generator that can generate the code for CRUD operations and entity objects against tables in a database. It needs to be:

Support Oracle database; The generated code must be simple and easy to use.

Thank you very much in advance!

+2  A: 
Marc Gravell
Think he was more after a code generator, rather than just some ORM tools
MPritch
Most ORM tools function as a code generator... to distinguish between them we'd need more detail from the OP...
Marc Gravell
Sorry, I meant he was after a code generator for the objects too, not just the DAL
MPritch
And many of those **will** create the objects...
Marc Gravell
Thank you Marc, I'll check them out. Martin, I prefer a code generator that generates simple and easy to consume classes rather than complex ORMs
eeeyyy
Then avoid EF ;-p
Marc Gravell
A: 

Check out CodeSmith for generating code from Oracle. It should support generating the files to be used by frameworks such as .netTiers, nHibernate etc.

MPritch
A: 

I think what you are looking for is a ORM tool. There are a number of ORM tools on the market, Some are open source projects while others are large scale commercial products.

Here's a list of .NET based ORMs that supports Oracle that I have heard/read/used:

DataObjects.Net

Nhibernate

SubSonic

QuBaR
Thanks QuBaR, I'll google these.
eeeyyy
Don't forget LLBLGen...
Matt
A: 

MyGeneration is a popular code generator for data-access. I believe it has an oracle template(s):

JonoW
Thank you very much JohoW, it looks powerful and best of all is that it's open source! I'll check it out.
eeeyyy
A: 

I definately agree that you should be looking at/for an ORM product. In addition to those already mentioned I would bring up Telerik's Open Access. It covers a good number of databases and integrates well to a number of other Microsoft technologies.

The down side is that it isn't free. But in my case our company purchased it in a package with controls. We needed to purchase a set of controls for a Silverlight project. I sold the boss on purchasing their suite as if we ever needed controls for either WPF or WinForms it would be paid for. They have a suite that contains controls for just about any .NET project along with their ORM and reporting.

Kirk