The following tools represent a sampling of the NHibernate code generation tools "in the wild" that are commonly used. This is by no means a complete list. Each product has a basic presentation of the code generation it does and a chart covering some basic requirements for an NHibernate operation. The judging criteria are as follows:
Editable: Can the template, used to generate the NHibernate code, be modified?
Partial Classes: Can the tool use partial classes for generating the Data Access and POCO layers?
N-tier: Does the generator separate the Data Access, POCO, and Presentation layers into discrete, usable layers?
Data Access: Does the generator create basic queries such as
GetByID
,GetAll
,GetBy(index field)
,GetCount
, and so on?MTM: Does the generator correctly map and handle many-to-many relationships?
Visual Studio plugin: Can the generator be executed from within Visual Studio?
Build Process add-in: Can the generator be integrated as part of a build process?
Open Source...