views:

48

answers:

1

Say I already have a Table:

Customer

First Last

Thus I would have an object with properties such as:

Customer.First Customer.Last

If I wanted to refactor the code so that I rename the properties:

Customer.FirstName Customer.LastName

Is there a way to indicate to NHibernate to update First to FirstName and so on?

I already know how to update using SchemaUpdate, but it just adds those two properties as new columns. Is there a way to indicate to re-map?

Thanks,

Gally

A: 

Use a DB migration tool for that. Here's a list of options for doing database migrations in .NET

Mauricio Scheffer