Reputation: 215
I know NHibernate just now and it reverse my perspective about data access.Now I know NHibernate CAN generate the database schema by itself when mapping.
But an more usual scenario is changing the database schema when the application has been running and some data has been inserted into the database. At this time, if I want to add a new column in some table(add a property for a entity), how should I do?
I can't delete the previous database and create a new one because I need the existing data.
Upvotes: 1
Views: 377
Reputation: 99730
NHibernate has SchemaUpdate, but more generally you'd want to use a DB migration tool instead.
Upvotes: 3