tags:

views:

60

answers:

2

Hi I want to call only stored procedures on database and fill my C# object according to the result. I just need a mapping file, and a fast reflection tool like Fasterflect found on CodePlex to create my own ORM.

Is there any ORM available with these feature for C# which has lightning fast performance ? or what should I do to complete the above scenario in terms of mapping database objects ??

+3  A: 

Hey,

There are several implementations of .NET ORMs.

The framework already has two, Linq to Sql and Entity Framework. What type of database are you trying to target?

If you are looking for open source implementations check out

NHibernate

I really wouldn't try building one yourself unless you have plenty of time! Most ORMs have a huge feature list.

I have used a product called LightSpeed from Mindscape. It support multiple rdbms, has a fantastic designer, superb linq capabilities and provides great performance.

Rohan West
+1 agreed; there are existing ORMs like NHibernate or Entity Framework that can call stored procedures just fine; don't recreate the wheel when there are great ones out there already
Tahbaza
NHibernate and Entity Framework is very heavy but complete. there are several benchmarks out there that shows these frameworks has low performance compared to other available frameworks like DataObject.NET
Ehsan
LightSpeed is great and the performance section of this product is exactly what I'm looking for but i need an open source
Ehsan
A: 

Fluent Ado.Net

Catalin DICU
Fluent Ado.Net isn't an ORM, it is simply a wrapper that sits on top of ADO.Net
Rohan West
@Rohan West: see SetMap()
Mauricio Scheffer
@Mauricio Scheffer: Set map is a method that accepts a function that defines how a SqlDataReader should be used to create an instance of the desired object. This is just adding a wrapper to ADO.Net, it dosn't provide any functionallity typically associated with an ORM
Rohan West
@Rohan West: that's what I understand the OP wants: a *simple* mapper. SetMap() is just that, a mapper as simple as it gets.
Mauricio Scheffer