Development With A Dot

Blog on development in general, and specifically on .NET

Sponsors

News

My Friends

My Links

Permanent Posts

Portuguese Communities

NHibernateDataSource

I wrote a NHibernateDataSource, which can be used in ASP.NET web forms applications just like their counterparts EntityDataSource and LinqDataSource.

It requires a LINQ to NHibernate NHibernateContext-derived class which specifies the queryable entities. You can get it from the NHContrib site.

I have used code from Microsoft's LINQ samples, of which I talked about on a previous post, and you can get a precompiled assembly from there.

I have not implemented the InsertParameters, DeleteParameters and UpdateParameters properties, only the WhereParameters, but it shouldn't be too difficult.

Please note that this code is merely a proof of concept, it may have problems, and it is not optimized. If you find anything in it that should be improved, drop me a line. As usual, hope you find it useful!

Bookmark and Share

Comments

Dan Crowell said:

Great job! Have you used the NHibernateDataSource on any production projects or is this still only a proof of concept? What are the known issus? Thanks!

# November 1, 2010 10:18 AM

Ricardo Peres said:

Hi, Dan!

POC only, sorry... but if you have any issues with it, let me know!

RP

# November 1, 2010 12:21 PM