Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# gedw99 11/19/2007 2:34 PM
How do people work with nhib for code gen

1. crate the DB first or the mapping files first?
2. code gen the entities from the bhm

what about this ?

http://using.castleproject.org/display/Contrib/ActiveWriter

looking for best practice advise as there are many way to skin this cat...

ged
# martijnb 11/20/2007 12:21 AM
Yes, there are definitely more ways to do this. It largely depends on the situation. Most of the times, I'm working with models that grow in time and I don't have to create lots of classes at once. So, therefore I haven't had the need for code gen yet (and also, Resharper makes creating domain classes a piece of cake).
If I were in a situation where I could benefit from code gen, I'd prefer generating code from the mapping files however.
# gedw99 11/20/2007 3:37 AM
Hey,

thanks. I may do the same, but will give it a try.