Getting started with Fluent NHibernate

I am trying to use Fluent NHibernate and I have a couple of questions. I believe that the documentation is not enough.

  • I understand that Fluent NHibernate / NHibernate allows you to automatically generate a database schema. Do people usually only do this for Test / Dev databases? Or is it ok to do for a production database? If this is normal for production, how do you make sure that you do not reset production data every time you start the application?

  • Once the database schema has already been created and you have production data when new tables / columns, etc. need to be added to the Test and / or Production database, do NHibernate people allow this, or should it be done manually?

  • Is there REALLY GOOD Fluent NHibernate documentation? (Please don’t point me to the wiki because, following along with the creation of the code “Your first project”, I received errors at runtime because they forget to tell you to add the link. Not cool.)

Thanks Andy

+3
source share
2 answers

I have been using Fluent NHibernate Automapping for several months now. I am by no means an expert, but I can take a hit on your questions ...

FNH Automapping actually creates database schemas from POCO classes, including lists of other objects (which is why I chose NHibernate in the first place).

, , , , . , , , . , NHibernate , . (BTW, Subsonic , - , , )

FNH - - Intellisense .. ( , - , !) wiki, , , . - (. , (!) . , FNH . , .

, FNH - !

+3

Fluent, NHibernate.

  • , (Schema Export). , . , . , .

  • . , ? , , , . NH , . - , .

  • Fluent, .

+1

Source: https://habr.com/ru/post/1742123/


All Articles