6

A little briefing first; I've been a Delphi person for years, and been away from C# for two years. The last thing I've done in C# was a mid scale DB app with my own custom DAL. Ie, I had coded my own functions to retrieve data as list, functions to append data and so on. Now I am offered a small to mid scale project using C# WinForms and SQL Server, and there's a deadline which is about 2 or 3 weeks. Note that I forgot LINQ syntax and lots of things.

Now, which ORM would be easiest and fastest to learn? I can cope with not using business abstraction layer if need be, to gain time that is. I need something that'll ease manual labour. Thanks in advance.

Dragan
  • 63
  • 3
  • Learning curves for ORMs are about the same (they are all quirky and have different features, and learning about ORMs in general takes the majority of the time). I'm not sure this is the question you should really be asking. – Michael Maddox Oct 07 '10 at 14:08

5 Answers5

11

For quick-to-implement etc, I'd look at LINQ-to-SQL; the jury is still out on who considers it to be full ORM, but tbh I don't care; it lets me map my data quickly, simply, conveniently and safely, with decent IDE/language support. The LINQ you generally need is pretty minimal... from, where, select, etc. And setting it up is just a case of telling the designer about the tables/columns vs clases/properties.

Marc Gravell
  • 1,026,079
  • 266
  • 2,566
  • 2,900
2

If I were you I would go for Entity framework. It's pretty simple,easy to implement, efficient and successful ORM tool. You can use LINQ as well in the entity framework while retrieving the data.

A_Var
  • 1,056
  • 1
  • 13
  • 23
2

As a recent ex-Delphi developer I've been amazed with using MyGeneration to generate basic DAL/BLL classes from an existing database, via custom templates. Takes a lot of the drudgery out of the task.

I've also seen some high praise for Business Logic Toolkit for .NET. Its clean and simple architecture and small learning curve makes it very attractive. Not really ORM, but will get you up and running quickly.

If you search for the terms C#/ORM here, you will find lots of lively and interesting debates!

Choosing Database and ORM for a .NET project Some suggestions on which .NET ORM to look at learning https://stackoverflow.com/questions/132676/which-orm-for-net-would-you-recommend https://stackoverflow.com/questions/146087/best-performing-orm-for-net

Community
  • 1
  • 1
Keith Blows
  • 1,580
  • 12
  • 14
1

If you don't mind a commercial product, Lightspeed is almost too good to be true. I've used it for about 6 months now and it has helped me in every way possible, from designing the model using a graphical tool, to migrations when upgrading, updating the database with a single click, good unit testing, easy custom extending, validation, etc. At least try out the free version!

ciscoheat
  • 3,719
  • 1
  • 35
  • 52
1

I have a project on .NET and MySQL. I've learned Devart LinqConnect in three weeks to complete it. All of LINQ functionality, wide support of MySQL, high quality support - like this product.

JackD
  • 597
  • 4
  • 7