Do any .Net O/R (object/Relational) Mappers provide Asynchronous methods out of the box?
I don’t want to have to write the boiler plate for the asynchronous method if possible
I have rolled my own DAL with Asynchronous methods using the CCR framework. The CCR basically demands that I don’t block any of it’s threads waiting for IO responses.
The good part about my solution so far is that it is down to the bare minimum. But as this project grows in terms of scale and functionality, I am facing the mildly daunting task of maintaining raw SQL queries and boiler plate code.
BUT on the other hand if the O/R mapper Asynchronous methods are really just a messy hack that adds oddles of complexity I am not better off.
Please don’t focus on alternatives to Asynchronous programming.
While I’m not sure if any of them do it out of the box, you could use .NetTiers, which is template based. You could just add the async parts to the template. That would at least eliminate you having to maintain the boilerplate code and bare SQL queries. This blog shows how to add async calls to the MS Enterprise library (which .NetTiers can use if you choose).
As of mid-December 2008, LLBLGen Pro does not natively support async calls. Currently Genome doesn’t either. It doesn’t appear that Telerik does either. Pretty much just searched their documentation and looked for either async or methods that start with begin because that’s the pattern.
I let the other answers speak as to if it’s a good idea or not…