What if I don't want to generate code

Posts   
 
    
Posts: 3
Joined: 23-Apr-2007
# Posted on: 24-Apr-2007 12:33:10   

Is it possible for the developer not to generate any code but just define the mapping between the entity classes (that he has written manually) and DB tables? I had a little experience (just tried a simple mapping) with NHibernate and didn't generate any code. Just filled a meta-data file about the mapping. Is it possible to generate nothing but just define the mapping logic?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39922
Joined: 17-Aug-2003
# Posted on: 24-Apr-2007 12:57:01   

That's called the 'POCO' approach and we currently don't support that. POCO requires class generation at runtime or post-compile IL manipulation. NHibernate generates at runtime proxy classes, we do that at generation time, so instead of getting them at runtime you get them earlier.

Frans Bouma | Lead developer LLBLGen Pro