CSLA->ORM (e.g. NH)

CSLA->ORM (e.g. NH)

Old forum URL: forums.lhotka.net/forums/t/11941.aspx


sanyo posted on Thursday, April 18, 2013

Please let me know, what is the best tool to generate DAL layer in nHibernate while BO in CSLA?

So that server side DataPortal would use nHibernate for CRUD

 

Also please let me know why CSLA often stands in generators as a replacement or alternative for nHibernate or other ORMs while being a universal business layer rather than a DAL oriented thing?

RockfordLhotka replied on Sunday, April 21, 2013

I suggest you start by reading the 'Using CSLA 4' ebook series. That will explain the thought process behind the way CSLA is designed.

The 'Using CSLA 4: Data Access' ebook discusses several options for creating a data access layer beneath a CSLA business layer. I don't discuss nHibernate specifically, but it is really no different than EF or other technologies in this context.

sanyo replied on Sunday, April 21, 2013

Thank you for suggesting the books, most likely they are very interesting

I guess CodeComplete from eurowisesoft.com does exactly what I need (NH DAL, DTO, CSLA BOs)

 

RockfordLhotka replied on Sunday, April 21, 2013

Here's my index of code gen tools:

http://www.lhotka.net/cslanet/codegen.aspx

sanyo replied on Sunday, April 21, 2013

It is just the place, where I have found the tool

Copyright (c) Marimer LLC