NHibernate Mapping Generator

02/02/2014 22:17 KraHen#1
I`m a fucking idiot (and you are as well if you did like me) for not using this before.

[Only registered and activated users can see links. Click Here To Register...]

Have fun!
02/02/2014 22:29 SteveRambo#2
This is only good if you've already designed your database. I'd rather create the mapping files (and design the database) manually and then have NHibernate generate the database tables automatically.
02/02/2014 22:31 KraHen#3
Yeah, I`m currently porting a PHP backend to .NET and this is my case, I ported the whole DB related stuff in half an hour with this little thing here. Although I do share your point of view.
02/02/2014 22:54 Spirited#4
I remember finding this the first time I implemented .NET Hibernate and was exploring the library. I considered implementing it, but I like the control. It usually lets me catch problems early on, like if I accidentally delete the health column when making a new column, I wrote the map file and so it catches the problem (since it's not generated). I also document the files. :p